|
Last change
on this file since 3114 was
2112,
checked in by chris, 21 years ago
|
|
orxonox/branches/chris: Implemented quaternion class… but something is still f up… the camera keeps pointing into the wrong direction… matrix rotation calculation seems not to be my strenght…
|
|
File size:
905 bytes
|
| Rev | Line | |
|---|
| [2014] | 1 | /*! |
|---|
| 2 | \file coordinates.h |
|---|
| 3 | \brief Basic coordinate system definitions |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| [1972] | 6 | #ifndef COORDINATES_H |
|---|
| 7 | #define COORDINATES_H |
|---|
| 8 | |
|---|
| 9 | #include "vector.h" |
|---|
| 10 | |
|---|
| [2012] | 11 | //! Coordinates relative to track |
|---|
| 12 | /** |
|---|
| 13 | This identifies the position of an object on the track system |
|---|
| 14 | */ |
|---|
| [2014] | 15 | typedef struct |
|---|
| [1972] | 16 | { |
|---|
| [2012] | 17 | unsigned long part; //!< ID of the track part the object is on |
|---|
| 18 | float dist; //!< The distance that has already been traveled on the track |
|---|
| 19 | Vector pos; //!< The position relative to the offset marked by the distance already covered |
|---|
| [2112] | 20 | Quaternion rot; //!< The direction the object is heading (relative to track direction) |
|---|
| [1972] | 21 | } Location; |
|---|
| 22 | |
|---|
| [2012] | 23 | //! Absolute coordinates |
|---|
| 24 | /** |
|---|
| 25 | This is used to store the position of a object in the rendered coordinate system |
|---|
| 26 | */ |
|---|
| [2014] | 27 | typedef struct |
|---|
| [1972] | 28 | { |
|---|
| [2012] | 29 | Vector r; //!< Absolute x/y/z coordinates |
|---|
| [2112] | 30 | Quaternion w; //!< Absolute orientation |
|---|
| [1972] | 31 | } Placement; |
|---|
| 32 | |
|---|
| 33 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.