返回介绍

ConfigurableJoint 可配置关节

发布于 2019-12-18 15:37:36 字数 9609 浏览 1466 评论 0 收藏 0

class in UnityEngine/Inherits from: Joint

Description 描述

The configurable joint is an extremely flexible joint giving you complete control over rotation and linear motion.

可配置的关节是一个非常灵活的关节让你完全控制旋转和直线运动。

You can build all other joints with it and much more but it is also more complicated to setup. It gives you control over motors, drives and joint limits for each rotation axis and and linear degree of freedom.

它给你控制电机、驱动器和联合限制为每个旋转轴和线性自由度。它给你控制电机、驱动器和联合限制为每个旋转轴和线性自由度。

Variables 变量

angularXDriveDefinition of how the joint's rotation will behave around its local X axis. Only used if Rotation Drive Mode is Swing & Twist.
关节的旋转在本地X轴周围如何表现的定义。仅在旋转驱动模式为Swing 和Twist模式下使用。
angularXLimitSpringThe configuration of the spring attached to the angular X limit of the joint.
附加于关节的角X限定弹性的结构。
angularXMotionAllow rotation around the X axis to be Free, completely Locked, or Limited according to Low and High Angular XLimit.
允许围绕X轴旋转可能是自由的,完全锁死的或者依据角X限制的上限和下限的限制类型。
angularYLimitBoundary defining rotation restriction, based on delta from original rotation.
定义旋转限制的范围,基于原始旋转的增量。
angularYMotionAllow rotation around the Y axis to be Free, completely Locked, or Limited according to Angular YLimit.
允许围绕Y轴旋转可能是自由的,完全锁死的或者依据角X限制的上限和下限的限制类型。
angularYZDriveDefinition of how the joint's rotation will behave around its local Y and Z axes. Only used if Rotation Drive Mode is Swing & Twist.
关节的旋转在本地Y和Z轴周围如何表现的定义。仅在旋转驱动模式为Swing 和Twist模式下使用。
angularYZLimitSpringThe configuration of the spring attached to the angular Y and angular Z limits of the joint.
附加于关节角X和角Y限定弹性的结构。
angularZLimitBoundary defining rotation restriction, based on delta from original rotation.
定义旋转限制的范围,基于原始旋转的增量。
angularZMotionAllow rotation around the Z axis to be Free, completely Locked, or Limited according to Angular ZLimit.
允许围绕Z轴旋转可能是自由的,完全锁死的或者依据角X限制的上限和下限的限制类型。
configuredInWorldSpaceIf enabled, all Target values will be calculated in world space instead of the object's local space.
如果启用,所有目标值将会在世界空间中被计算而不是这物体的自身空间。
highAngularXLimitBoundary defining upper rotation restriction, based on delta from original rotation.
定义上旋转限制范围,基于原始旋转的增量。
linearLimitBoundary defining movement restriction, based on distance from the joint's origin.
定义运动限制范围,基于关节本身距离。
linearLimitSpringThe configuration of the spring attached to the linear limit of the joint.
附加于关节的线性限定弹性的结构。
lowAngularXLimitBoundary defining lower rotation restriction, based on delta from original rotation.
定义下旋转限制范围,基于原始旋转的增量。
projectionAngleSet the angular tolerance threshold (in degrees) for projection.If the joint deviates by more than this angle around its locked angular degrees of freedom, the solver will move the bodies to close the angle.Setting a very small tolerance may result in simulation jitter or other artifacts.Sometimes it is not possible to project (for example when the joints form a cycle).
设置投影角公差阈值(度)。如果周围关节偏离超过这个角锁角自由度,解算器将身体靠近该角。设置一个非常小的公差可能导致模拟抖动或者其他假象。有时是不可能的项目(例如当关节形成一个周期)。
projectionDistanceSet the linear tolerance threshold for projection.If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance.Setting a very small tolerance may result in simulation jitter or other artifacts.Sometimes it is not possible to project (for example when the joints form a cycle).
设置投影角公差阈值(度)。如果周围关节偏离超过这个角锁角自由度,解算器将身体靠近该角。设置一个非常小的公差可能导致模拟抖动或者其他假象。有时是不可能的项目(例如当关节形成一个周期)。
projectionModeBrings violated constraints back into alignment even when the solver fails. Projection is not a physical process and does not preserve momentum or respect collision geometry. It is best avoided if practical, but can be useful in improving simulation quality where joint separation results in unacceptable artifacts.
带来违反约束返回到队列即当解算失败时。投影不是一个物理进程并且不会保护动量或者遵守碰撞几何。如果在实际中最好避免,但当关节分离导致不可预知的假象时可用于提高模拟质量。
rotationDriveModeControl the object's rotation with either X & YZ or Slerp Drive by itself.
用X & YZ或者Slerp Drive二者之一控制该物体自身的旋转。
secondaryAxisThe joint's secondary axis.
该关节的二级轴。
slerpDriveDefinition of how the joint's rotation will behave around all local axes. Only used if Rotation Drive Mode is Slerp Only.
关节围绕所用自身坐标轴旋转如何表现的定义。仅在Slerp 的旋转驱动模式下使用。
swapBodiesIf enabled, the two connected rigidbodies will be swapped, as if the joint was attached to the other body.
如果启用,将交换两个连接的刚体,就像关节被附加到其他身体。
targetAngularVelocityThis is a Vector3. It defines the desired angular velocity that the joint should rotate into.
这是个Vector3类型的值。它定义关节需要旋转变换的角速度。
targetPositionThe desired position that the joint should move into.
关节需要移动到的位置。
targetRotationThis is a Quaternion. It defines the desired rotation that the joint should rotate into.
这是个四位数。它定义了关节所需旋转到位置。
targetVelocityThe desired velocity that the joint should move along.
该关节朝着目标所需速度。
xDriveDefinition of how the joint's movement will behave along its local X axis.
关节沿着自身X轴运动如何表现的定义。
xMotionAllow movement along the X axis to be Free, completely Locked, or Limited according to Linear Limit.
允许沿着X轴运动可能是自由运动,完全限制运动或者根据线性限定限制性的运动。
yDriveDefinition of how the joint's movement will behave along its local Y axis.
关节沿着自身Y轴运动如何表现的定义。
yMotionAllow movement along the Y axis to be Free, completely Locked, or Limited according to Linear Limit.
允许沿着Y轴运动可能是自由运动,完全限制运动或者根据线性限定限制性的运动。
zDriveDefinition of how the joint's movement will behave along its local Z axis.
关节沿着自身Z轴运动如何表现的定义。
zMotionAllow movement along the Z axis to be Free, completely Locked, or Limited according to Linear Limit.
允许沿着Z轴运动可能是自由运动,完全限制运动或者根据线性限定限制性的运动。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文