用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:hingejoint:hingejoint

HingeJoint 铰链关节

class in UnityEngine/Inherits from: Joint

Description 描述

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.

铰链关节有一个马达用于使铰链围绕关节的轴旋转。通过围绕关节轴旋转尝试到达指定角度。并且具有约束关节角度的限制。

Variables 变量

angleThe current angle in degrees of the joint relative to its rest position. (Read Only)
当前角度指该关节相对于它静止位置的度数。(只读)
limitsLimit of angular rotation (in degrees) on the hinge joint.
在铰链关节中角度旋转的限制(单位度)。
motorThe motor will apply a force up to a maximum force to achieve the target velocity in degrees per second.
该马达将会施加一个最大的力达到目标速度(单位:度/秒)。
springThe spring attempts to reach a target angle by adding spring and damping forces.
该弹力通过增加弹力和阻碍力尝试达到指定角度。
useLimitsEnables the joint's limits. Disabled by default.
启用关节限制。默认是禁用。
useMotorEnables the joint's motor. Disabled by default.
启用关节马达。默认是禁用。
useSpringEnables the joint's spring. Disabled by default.
启用该关节弹力。默认是禁用。
velocityThe angular velocity of the joint in degrees per second.
关节的角速度(单位:度/秒)。
script/unityengine/classes/hingejoint/hingejoint.txt · 最后更改: 2016/08/02 05:25 (外部编辑)