sm.physics.getShapeContactsInBox
Returns a table of all shapes colliding with a given box.
Kind: Function
Environments: Game
Game
sm.physics.getShapeContactsInBox( position, rotation, halfExtents, world )
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Vec3 | The center position of the box. |
rotation |
Quat | The rotation of the box. |
halfExtents |
Vec3 | The halved size of the box. |
world |
World | The world to search in. (optional) |
Returns: