# Create3DPhysicsConeTwistJoint

## Description

Creates a Cone Twist joint between object a and b. The rotationVec3 paramter 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. The joint will spin along the given axis and rotate freely within a cone along this axis. The cone limits can be specified with Set3DPhysicsJointConeTwistLimits. Returns a joint ID.

## Definition

integer Create3DPhysicsConeTwistJoint( objA, objB, positionVec3, rotationVec3, disableCollisions )

int agk::Create3DPhysicsConeTwistJoint( UINT objA, UINT 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.