Adds a new shape to the sprite, in addition to any it already has. These additional shapes only apply to physics sprites and must be added after a sprite has been set to use physics.

The box is defined by specifying its top left and bottom right coordinates in sprite space, relative to its current offset. For example if the current sprite offset was 0,0 the top left box corner would be 0,0, but if the sprite offset was the middle of the sprite (default) the top left corner would be -width/2,-height/2. You may also specify an angle to offset the box relative to the current sprite rotation.

This will recalculate the sprite's mass and center of mass values.


AddSpriteShapeBox( iSpriteIndex, x, y, x2, y2, angle )