OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
constants.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_CONSTANTS_H
2 #define OPENMW_CONSTANTS_H
3 
4 namespace Constants
5 {
6 
7 // The game uses 64 units per yard
8 const float UnitsPerMeter = 69.99125109f;
9 const float UnitsPerFoot = 21.33333333f;
10 
11 // Sound speed in meters per second
12 const float SoundSpeedInAir = 343.3f;
13 const float SoundSpeedUnderwater = 1484.0f;
14 
15 // Gravity constant in m/sec^2
16 // Note: 8.96 m/sec^2 = 9.8 yards/sec^2
17 // Probaly original engine's developers just forgot
18 // that their engine uses yards instead of meters
19 // and used standart gravity value as it is
20 const float GravityConst = 8.96f;
21 
22 // Size of one exterior cell in game units
23 const int CellSizeInUnits = 8192;
24 
25 }
26 
27 #endif
const float UnitsPerFoot
Definition: constants.hpp:9
const float SoundSpeedUnderwater
Definition: constants.hpp:13
const int CellSizeInUnits
Definition: constants.hpp:23
const float GravityConst
Definition: constants.hpp:20
const float UnitsPerMeter
Definition: constants.hpp:8
const float SoundSpeedInAir
Definition: constants.hpp:12