Physics Object
Work In Progress
We are working on updating and improving this documentation. Some information may be missing or inaccurate.
Description
Physics drivers can be assigned to most world obstacles (like boxes, pyramids, and mesh objects) and will then apply different physics to a player's tank, such as moving them like they are on a conveyor belt or launching them into the air, spinning the player, adding sliding (acting like ice for instance), or killing the player on contact.
Attributes
| Syntax | Description |
|---|---|
| name <name> |
Sets the name of this object. In many cases, this does not have any purpose and may just be useful for documenting what the object is for. In some case, like for teleporters, this can be used to reference the object from other objects. |
| linear <velocity_x> <velocity_y> <velocity_z> |
Applies X, Y, and/or Z velocities to a tank. Useful for creating conveyor belts or jump pads. |
| angular <velocity> <x> <y> | |
| radial <velocity> <x> <y> | |
| slide <slidetime> |
Defines, in seconds, the time until a tank reaches max velocity |
| death Death Message Here |
This causes objects to become fatal when touched. The death message is sent to the player. |
Syntax Examples
Here is one that creates a basic conveyor belt.
physics
name conveyor
linear 30 0 0
end
Here is another that creates a bounce pad.
physics
name bounce
linear 30 0 30
end
This will make a surface act like it's icy.
physics
name ice
slide 1.0
end
This one kills the player when they touch it.
physics
name mine
death Oops! You hit a mine!
end
This content is maintained on GitHub. We welcome any feedback and improvements!