Create3DPhysicsHingeJoint
Description
Creates a hinge joint between object a and b. The rotationVec3 parameter should be an axis in the form (0,1,0) for vertical, (1,0,0) for horizontal along the X axis, (0,0,1) for horizontal along the Z axis, or any combination of these. The rotation vector does not need to be normalized. Returns a joint ID.
Definition
integer Create3DPhysicsHingeJoint( objA, objB, positionVec3, rotationVec3, disableCollisions )
int agk::Create3DPhysicsHingeJoint( uint32_t objA, uint32_t objB, int positionVec3, int rotationVec3, int disableCollisions )
Parameters
- objA - first object ID
- objB - second object ID
- positionVec3 - vector ID
- rotationVec3 - vector ID
- disableCollisions - 1 = collisions will be disabled between linked objects, 0 collisions will be enabled between linked objects.