SetObjectShapeCone
Description
Sets the collision shape to a cone based on the size passed in. You must first create a physics body for the object or this command will fail. Returns shape ID.
Definition
SetObjectShapeCone( objID, axis, height, diameter )
void agk::SetObjectShapeCone( UINT objID, int axis, float height, float diameter )
SetObjectShapeCone( objID, axis )
void agk::SetObjectShapeCone( UINT objID, int axis )
Parameters
- objID - object ID
- axis - 0 =X axis, 1 =Y axis, 2 = Z axis orientation
- height - height on the y
- diameter - diameter on the x and z