SetObjectShapeCapsule
Description
Sets the collision shape to a capsule based on the size passed in. You must first create a physics body for the object or this command will fail.
Definition
SetObjectShapeCapsule( objID, axis, sizeX, sizeY, sizeZ )
void agk::SetObjectShapeCapsule( uint32_t objID, int axis, float sizeX, float sizeY, float sizeZ )
SetObjectShapeCapsule( objID, axis )
void agk::SetObjectShapeCapsule( uint32_t objID, int axis )
SetObjectShapeCapsule( objID, axis, vectorID )
void agk::SetObjectShapeCapsule( uint32_t objID, int axis, uint32_t vectorID )
Parameters
- objID - object ID
- axis - 0 =X axis, 1 =Y axis, 2 = Z axis orientation
- sizeX - dimension on the x axis
- sizeY - dimension on the Y axis
- sizeZ - dimension on the Z axis
- vectorID - ID of the dimension vector.