sm.physics.multicast
Performs multiple sphere and/or raycasts given a table of parameters.
Kind: Function
Environments: Game
Game
sm.physics.multicast( casts, world )
Type can be "sphere" or "ray". Radius is ignored for rays.
ignoreUuids option is a table of uuids {Uuid, ...} of Shape, Harvestable or Character type to be ignored.
Parameters:
| Name | Type | Description |
|---|---|---|
casts |
table | Table of casts. { type=string, startPoint=Vec3, endPoint=Vec3, radius=number, mask=sm.physics.filter, ignoreUuids=table } |
world (optional) |
World | The world to perform the cast in. (Optional) |
Returns:
| Type | Description |
|---|---|
| table | Array of pairs of boolean and RaycastResult. {{boolean, RaycastResult}, ..} |