sm.tool.checkLiftCollisionAtLevel
Checks whether a specific lift level is valid (no collision) for a creation at the given position and rotation.
Kind: Function
Environments: Game
Game
sm.tool.checkLiftCollisionAtLevel(
creation,
position,
rotation,
level,
timeStamp
)
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. |
level |
integer | The specific lift level to test. |
timeStamp |
integer | The timestamp of when the body set was initialized |
Returns:
| Type | Description |
|---|---|
| boolean | True if the level is valid (no collision). |