sm.tool.checkLiftCollision
Used to check collisions between the lift and the world.
Kind: Function
Environments: Game
Game
sm.tool.checkLiftCollision( creation, position, rotation )
Parameters:
| Name | Type | Description |
|---|---|---|
creation |
table | A table of all the bodies belonging to the creation placed on the lift. |
position |
Vec3 | The lift position. |
rotation |
integer | The rotation of the creation on the lift. |
Returns:
| Type | Description |
|---|---|
| boolean | True if the lift collides with the world |
| integer | The lift level. |