Coordinate systems
From VDrift
The positions and dimensions used in the VDrift .car files are expressed as a triplet of floating-point numbers on a 3-dimensional Cartesian graph. See Wikipedia: Cartesian coordinates in three dimensions for more information.
Note: All directions mentioned on this page (left, up, forward, etc.) are relative to the driver of the car. |
Contents |
Car coordinates
Currently, the .car files use the following coordinate system for all parameters:
- x axis: negative is left, positive is right
- y axis: negative is back, positive is forward
- z axis: negative is down, positive is up
This is known as a right-handed (positive) coordinate system.
This coordinate system matches the one used in Blender. To use this coordinate system, specify version = 2
in the .car file.
Deprecated system
Previous to revision 2196 of the development version, the .car files all used mixed coordinate systems (version = 1
).
Mass Position
This is the same the Blender coordinate system (described above).
Wheel and Driver View Positions
- x axis: negative is back, positive is forward
- y axis: negative is right, positive is left
- z axis: negative is down, positive is up