ConeTwistJoint()
语法
Result = ConeTwistJoint(#Joint, EntityID, TransformX, TransformY, TransformZ, EntityID2, TransformX2, TransformY2, TransformZ2)概要
Creates a new cone twist joint between the two given entities. Cone twist can be used to attach arm or legs to body, etc.
参数
#Joint The number to identify the new joint. #PB_Any can be used to auto-generate this number. EntityID The first entity id associated to the joint. To get a valid entity id, use EntityID(). TransformX The X value of the transformation for the first entity. TransformY The Y value of the transformation for the first entity. TransformZ The Z value of the transformation for the first entity. EntityID2 The second entity id used to create the joint. To get a valid entity id, use EntityID(). TransformX2 The X value of the transformation for the second entity. TransformY2 The Y value of the transformation for the second entity. TransformZ2 The Z value of the transformation for the second entity.
返回值
Returns zero if the joint can't be created. If #PB_Any is used as '#Joint' parameter, the new joint number will be returned as 'Result'.
Remarks
GetJointAttribute() and SetJointAttribute() can be used with the following attribute to change the joint behavior:#PB_ConeTwistJoint_SwingSpan : First swing span of the joint #PB_ConeTwistJoint_SwingSpan2 : Second swing span of the joint #PB_ConeTwistJoint_TwistSpan : Twist span of the joint
参阅
FreeJoint(), GetJointAttribute(), SetJointAttribute()
已支持操作系统
所有