ConeTwistJoint()
Syntax
Result = ConeTwistJoint(#Joint, EntityID, TransformX, TransformY, TransformZ, EntityID2, TransformX2, TransformY2, TransformZ2)Description
Creates a new cone twist joint between the two given entities. Cone twist can be used to attach arm or legs to body, etc.
Parameters
#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, TransformY, TransformZ The transformation to apply for the first entity. EntityID2 The second entity id used to create the joint. To get a valid entity id, use EntityID(). TransformX2, TransformY2, TransformZ2 The transformation to apply for the second entity.
Return value
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
See Also
FreeJoint(), GetJointAttribute(), SetJointAttribute()
Supported OS
All