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