用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:sliderjoint2d:sliderjoint2d

SliderJoint2D 滑块二维关节

Namespace: UnityEngine

Namespace: UnityEngine/Inherits from:AnchoredJoint2D

Description 描述

Joint that restricts the motion of a Rigidbody2D object to a single line.

关节,这个关节限制一个二维刚体对象的运动,并沿着一条单一的路线

See Also: Rigidbody2D class,DistanceJoint2D class,,HingeJoint2D class,SpringJoint2D class.

Variables 变量

angle The angle of the line in space.
在空间中,线路的角
jointSpeed The current joint speed.
当前关节的速度。
jointTranslation The current joint translation.
当前关节转化。
limits Restrictions on how far the joint can slide in each direction along the line.
限制住关节距离,使这个关节能沿着线路的每个方向滑动多远
limitState Gets the state of the joint limit.
获取关节极限的状态。
motor Parameters for a motor force that is applied automatically to the Rigibody2D along the line.
参数用于一个电机力,这个力自动地沿着路线作用于二维刚体
referenceAngle The angle referenced between the two bodies used as the constraint for the joint.
在两个物体之间的夹角,用于约束关节
useLimits Should motion limits be used?
运动限定应使用吗?
useMotor Should a motor force be applied automatically to the Rigidbody2D?
电机力应自动地作用于二维刚体吗?

Function 函数

GetReactionForce Gets the motor force of the joint given the specified timestep.
获取关节的电机力,并给定指定的时间步.
script/unityengine/classes/sliderjoint2d/sliderjoint2d.txt · 最后更改: 2016/08/02 05:26 (外部编辑)