AddObjectShapeCapsule
Description
Adds a capsule collision shape to a compound shape. First set the objects shape to a compound collision shape with SetObjectShapeCompound().
Definition
AddObjectShapeCapsule( objID, positionVec3, rotationVec3, sizeVec3, axis )
void agk::AddObjectShapeCapsule( int objID, int positionVec3, int rotationVec3, int sizeVec3, int axis )
Parameters
- objID - object ID
- positionVec3 - The vector Id of the vector with the world position for the center of the shape.
- rotationVec3 - The vector ID of the vector with the world rotation of the shape.
- sizeVec3 - The vector ID of the vector with the size of the shape.
- axis - 0 = X axis, 1 = Y axis, 2 = Z axis.