Add3DPhysicsRagDollBone
Description
Creates a ragdoll bone capsule between the objects start and end bone location. Returns ragdoll bone ID. If this command fails to create a bone it will return a -1.
Definition
integer Add3DPhysicsRagDollBone( startBoneID, endBoneID, diameter, collisionGroup, collisionMask )
int agk::Add3DPhysicsRagDollBone( uint32_t startBoneID, uint32_t endBoneID, float diameter, int collisionGroup, int collisionMask )
Parameters
- startBoneID - objects bone ID
- endBoneID - objects bone ID
- diameter - size of the capsule that will be the ragdoll bone.
- collisionGroup - collision group that this Physics object belongs too.
- collisionMask - collision groups you want masked from collision.