This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing World units

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
A world unit is the basic unit of measure when dealing with BZFlag. World units have no real-world counterpart, as they are a purely virtual concept, but they can be though of to be equivalent to about 1 meter in length if you assume a roughly real world sized [[tank]].
+
A world unit is the basic unit of measure when dealing with BZFlag. World units have no real-world counterpart, as they are a purely virtual concept, they can be though of to be equivalent to about 1 meter in length if you assume a roughly real world sized [[tank]].
 
+
All coordinates in the map file are specified in World Units. Many [[Server Variables]] are specified in terms of world units or world units per second as well.
+
 
+
==Origin==
+
The origin for the World coordinate system is the center of the map.
+
 
+
==Orientation==
+
World Units are oriented in a normal right hand rule coordinate system with positive Z being the "UP" direction.
+
 
+
===North===
+
"north" on the in game radar is the positive Y direction in map coordinates.
+
 
+
===Figure 1===
+
This image shows a typical map, with the origin and axis directions clearly marked out.
+
[[Image:MapCoordinateSystem.png]]
+
 
+
== Some useful measures at default settings ==
+
<div align="center">
+
{| cellpadding="0" cellspacing="0" border="1" width="60%"
+
|-
+
|width="60%"|Jump height limit (next to impossible)
+
|width="20%"|See below
+
|width="10%"|18.42
+
|-
+
|Common jump height
+
|See below
+
|17.0
+
|-
+
|Tank length
+
|_tankLength
+
|6.0
+
|-
+
|Tank width
+
|_tankWidth
+
|2.8
+
|-
+
|Tank height
+
|_tankHeight
+
|2.05
+
|-
+
|Barrel height
+
|_muzzleHeight
+
|1.57
+
|-
+
|Drivable bump height
+
|_bumpHeight
+
|0.33
+
|-
+
|}
+
</div>
+
 
+
== Calculating jump height ==
+
Jump height is determined by the gravity and jump velocity settings on the server (see [[Server Variables]] for details).  Note that the jump velocity and gravity may be altered by flags like [http://bzflag.org/documentation/flags Wings].
+
 
+
:Max jump height = -(_jumpVelocity)<sup>2</sup> / (2 * (_gravity))
+
 
+
A typical BZFlag player can reliably jump a bit more than 90% of the maximum jump height.
+
 
+
==See also==
+
* [[Comparison of map objects]]
+
* [[Map making]]
+
* [[Map FAQ]]
+
  
 
[[Category:Map Making]]
 
[[Category:Map Making]]
 
[[Category:Concepts]]
 
[[Category:Concepts]]

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)