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 )

Open the full Game reference

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:

Type Description
table The table of found shapes. {{shape=Shape, contactWorldPosition=Vec3 }, ..}