sm.physics.getShapeContactsInSphere

Returns a table of all shapes colliding with a given sphere.

Kind: Function

Environments: Game

Game

sm.physics.getShapeContactsInSphere( center, radius, world )

Open the full Game reference

Parameters:

Name Type Description
center Vec3 The center position of the sphere.
radius number The radius of the sphere.
world World The world to search in. (optional)

Returns:

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