Last change
on this file since 3542 was
3238,
checked in by bensch, 20 years ago
|
orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2191] | 1 | /*! |
---|
| 2 | \file coordinates.h |
---|
| 3 | \brief Basic coordinate system definitions |
---|
| 4 | */ |
---|
| 5 | |
---|
[3238] | 6 | #ifndef _COORDINATES_H |
---|
| 7 | #define _COORDINATES_H |
---|
[2191] | 8 | |
---|
[2551] | 9 | #include "vector.h" |
---|
| 10 | |
---|
| 11 | class Track; |
---|
| 12 | |
---|
[2191] | 13 | //! Coordinates relative to track |
---|
| 14 | /** |
---|
| 15 | This identifies the position of an object on the track system |
---|
| 16 | */ |
---|
| 17 | typedef struct |
---|
| 18 | { |
---|
| 19 | unsigned long part; //!< ID of the track part the object is on |
---|
[2551] | 20 | Track* track; //!< This is the current Track to which the Entity belongs to |
---|
[2191] | 21 | float dist; //!< The distance that has already been traveled on the track |
---|
[2551] | 22 | Vector pos; //!< The position relative to the offset marked by the distance already covered - this is mostly for user interaction/control |
---|
| 23 | Quaternion rot; //!< The direction the object is heading (relative to track direction) |
---|
[2191] | 24 | } Location; |
---|
| 25 | |
---|
| 26 | //! Absolute coordinates |
---|
| 27 | /** |
---|
| 28 | This is used to store the position of a object in the rendered coordinate system |
---|
| 29 | */ |
---|
| 30 | typedef struct |
---|
| 31 | { |
---|
| 32 | Vector r; //!< Absolute x/y/z coordinates |
---|
[2551] | 33 | Quaternion w; //!< Absolute orientation |
---|
[2191] | 34 | } Placement; |
---|
[2551] | 35 | |
---|
[3238] | 36 | #endif /* _COORDINATS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.