sm.physics.isSphereHittingLiquid
Returns whether a sphere is hitting a liquid or not.
Kind: Function
Environments: Game
Game
sm.physics.isSphereHittingLiquid( position, world, radius )
Parameters:
| Name | Type | Description |
|---|---|---|
position |
Vec3 | The world position to check. |
world (optional) |
World | The world to check in. |
radius |
number | The radius of the sphere. |
Returns:
| Type | Description |
|---|---|
| boolean | Whether the sphere is hitting a liquid or not |