Pyrogenesis  trunk
Typedefs
Position.h File Reference

Entity coordinate types. More...

#include "maths/Fixed.h"
Include dependency graph for Position.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef CFixed_15_16 entity_pos_t
 Positions and distances (measured in metres) More...
 
typedef CFixed_15_16 entity_angle_t
 Rotations (measured in radians) More...
 

Detailed Description

Entity coordinate types.

The basic unit is the "meter". Terrain tiles are TERRAIN_TILE_SIZE (=4) meters square. To support deterministic computation across CPU architectures and compilers and optimisation settings, the C++ simulation code must not use floating-point arithmetic. We therefore use a fixed-point datatype for representing world positions.

Typedef Documentation

Rotations (measured in radians)

Positions and distances (measured in metres)