class in UnityEngine/Inherits from: Joint
The HingeJoint groups together 2 rigid bodies, constraining them to move like connected by a hinge.
铰链关节由2个刚体一起组成,像是通过铰链连接约束它们移动。
This joint is great for, well, doors, but can also be used to model chains, etc…
该关节很适合用于井,门,但也可以用于模型链,等等。
The HingeJoint has a motor which can be used to make the hinge spin around the joints axis. A spring which attempts to reach for a target angle by spinning around the joints axis. And a limit which constrains the joint angle.
铰链关节有一个马达用于使铰链围绕关节的轴旋转。通过围绕关节轴旋转尝试到达指定角度。并且具有约束关节角度的限制。
angle | The current angle in degrees of the joint relative to its rest position. (Read Only) 当前角度指该关节相对于它静止位置的度数。(只读) |
limits | Limit of angular rotation (in degrees) on the hinge joint. 在铰链关节中角度旋转的限制(单位度)。 |
motor | The motor will apply a force up to a maximum force to achieve the target velocity in degrees per second. 该马达将会施加一个最大的力达到目标速度(单位:度/秒)。 |
spring | The spring attempts to reach a target angle by adding spring and damping forces. 该弹力通过增加弹力和阻碍力尝试达到指定角度。 |
useLimits | Enables the joint's limits. Disabled by default. 启用关节限制。默认是禁用。 |
useMotor | Enables the joint's motor. Disabled by default. 启用关节马达。默认是禁用。 |
useSpring | Enables the joint's spring. Disabled by default. 启用该关节弹力。默认是禁用。 |
velocity | The angular velocity of the joint in degrees per second. 关节的角速度(单位:度/秒)。 |