This wiki is archived and useful information is being migrated to the main bzflag.org website
Difference between revisions of "Physics"
From BZFlagWiki
m (Category:Map_making to Category:Map Making) |
m (format) |
||
Line 5: | Line 5: | ||
| | | | ||
physics | physics | ||
− | name example_phydrv | + | name example_phydrv |
− | linear 0.0 0.0 0.0 | + | linear 0.0 0.0 0.0 |
− | angular 0.0 0.0 0.0 | + | angular 0.0 0.0 0.0 |
− | slide 0.0 | + | slide 0.0 |
− | death Message goes here. | + | death Message goes here. |
end | end | ||
|} | |} | ||
The valid parameters for physics are: | The valid parameters for physics are: | ||
− | '''name''': Name of the physics driver | + | *'''name''': Name of the physics driver, for reference |
− | + | *'''linear''': Cause a tank to move linearly at the given velocity (x/y/z). | |
− | '''linear''': Cause a tank to move linearly at the given velocity. | + | *'''angular''': Cause a tank to rotate at the given velocity,(Rotation velocity, x/y coordinates). |
− | + | *'''slide''': Cause the tank to accelerate slowly during the time given. (i.e. Makes a 'slippery' surface.)(Time until max velocity (> 0.0 enables) | |
− | '''angular''': Cause a tank to rotate at the given velocity. | + | *'''death''': Causes the tank to die on contact. Player sees the given message |
− | + | ||
− | '''slide''': Cause the tank to accelerate slowly during the time given. (i.e. Makes a 'slippery' surface.) | + | |
− | + | ||
− | '''death''': Causes the tank to die on contact. Player sees the given message | + | |
Revision as of 01:06, 24 March 2007
Physics, or Physics Driver, can be applied to any 2.0 object, for example a mesh or meshbox. It will affect a tank touching it in some way.
Code
physics name example_phydrv linear 0.0 0.0 0.0 angular 0.0 0.0 0.0 slide 0.0 death Message goes here. end |
The valid parameters for physics are:
- name: Name of the physics driver, for reference
- linear: Cause a tank to move linearly at the given velocity (x/y/z).
- angular: Cause a tank to rotate at the given velocity,(Rotation velocity, x/y coordinates).
- slide: Cause the tank to accelerate slowly during the time given. (i.e. Makes a 'slippery' surface.)(Time until max velocity (> 0.0 enables)
- death: Causes the tank to die on contact. Player sees the given message
A physics driver can be called by adding 'phydrv <name>' to an object or mesh face.
Editor Support
There are currently no supported editors: physics drivers will need to be added by hand in a text editor.
History
The Physics object was added with the v2.0.0 release of BZFlag.