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