Difference between revisions of "Coordinate systems"

From VDrift
Jump to: navigation, search
m (removed from update and expand, i think this page has current data, it just needs reformatting (see Talk))
(Current system first, bullets instead of code blocks.)
Line 1: Line 1:
 +
==Coordinate system==
 +
Currently, the .car files use the following coordinate system for all parameters:
 +
* car x = right & left, negative being left
 +
* car y = forward & back, negative being back
 +
* car z = up & down, negative being down
 +
 +
This coordinate system was picked because it matches the blender coordinates.  To use this coordinate system, specify "version = 2" in the .car file.
 +
 
==Coordinate system version 1 (outdated)==
 
==Coordinate system version 1 (outdated)==
 
Previous to code revision 2196, the .car files all used mixed coordinate systems.
 
Previous to code revision 2196, the .car files all used mixed coordinate systems.
  
* blender coordinate system
+
* blender coordinate system
car x = right & left, negative being left
+
** car x = right & left, negative being left
car y = forward & back, negative being back
+
** car y = forward & back, negative being back
car z = up & down, negative being down
+
** car z = up & down, negative being down
 
 
* .car file: mass positioning (same as blender)
 
car x = right & left, negative being left
 
car y = forward & back, negative being back
 
car z = up & down, negative being down
 
  
* .car file: wheel positioning (tested on Front Right wheel)
+
* .car file: mass positioning (same as blender)
wheel x = forward and back, negative being back
+
** car x = right & left, negative being left
wheel y = left and right, negative being right
+
** car y = forward & back, negative being back
wheel z = up and down, negative being down
+
** car z = up & down, negative being down
  
* .car file: view positioning (same as wheel)
+
* .car file: wheel positioning (tested on Front Right wheel)
view x = forward & back, negative being back
+
** wheel x = forward and back, negative being back
view y = right & left, negative being right
+
** wheel y = left and right, negative being right
view z = up and down, negative being down
+
** wheel z = up and down, negative being down
  
==Coordinate system version 2==
+
* .car file: view positioning (same as wheel)
As of code revision 2196, the .car files can optionally use the following coordinate system for all parameters:
+
** view x = forward & back, negative being back
car x = right & left, negative being left
+
** view y = right & left, negative being right
car y = forward & back, negative being back
+
** view z = up and down, negative being down
car z = up & down, negative being down
 
 
 
This coordinate system was picked because it matches the blender coordinates.  To use this coordinate system, specify "version = 2" in the .car file.
 
  
 
[[Category:Cars]]
 
[[Category:Cars]]

Revision as of 13:24, 12 December 2010

Coordinate system

Currently, the .car files use the following coordinate system for all parameters:

  • car x = right & left, negative being left
  • car y = forward & back, negative being back
  • car z = up & down, negative being down

This coordinate system was picked because it matches the blender coordinates. To use this coordinate system, specify "version = 2" in the .car file.

Coordinate system version 1 (outdated)

Previous to code revision 2196, the .car files all used mixed coordinate systems.

  • blender coordinate system
    • car x = right & left, negative being left
    • car y = forward & back, negative being back
    • car z = up & down, negative being down
  • .car file: mass positioning (same as blender)
    • car x = right & left, negative being left
    • car y = forward & back, negative being back
    • car z = up & down, negative being down
  • .car file: wheel positioning (tested on Front Right wheel)
    • wheel x = forward and back, negative being back
    • wheel y = left and right, negative being right
    • wheel z = up and down, negative being down
  • .car file: view positioning (same as wheel)
    • view x = forward & back, negative being back
    • view y = right & left, negative being right
    • view z = up and down, negative being down