1 #ifndef OPENMW_CONSTANTS_H
2 #define OPENMW_CONSTANTS_H
3 
4 #include <string>
5 
6 namespace Constants
7 {
8 
9 // The game uses 64 units per yard
10 const float UnitsPerMeter = 69.99125109f;
11 const float UnitsPerFoot = 21.33333333f;
12 
13 // Sound speed in meters per second
14 const float SoundSpeedInAir = 343.3f;
15 const float SoundSpeedUnderwater = 1484.0f;
16 
17 // Gravity constant in m/sec^2
18 // Note: 8.96 m/sec^2 = 9.8 yards/sec^2
19 // Probaly original engine's developers just forgot
20 // that their engine uses yards instead of meters
21 // and used standart gravity value as it is
22 const float GravityConst = 8.96f;
23 
24 // Size of one exterior cell in game units
25 const int CellSizeInUnits = 8192;
26 
27 // Size of active cell grid in cells (it is a square with the (2 * CellGridRadius + 1) cells side)
28 const int CellGridRadius = 1;
29 
30 // A label to mark night/day visual switches
31 const std::string NightDayLabel = "NightDaySwitch";
32 
33 // A label to mark visual switches for herbalism feature
34 const std::string HerbalismLabel = "HerbalismSwitch";
35 
36 // Percentage height at which projectiles are spawned from an actor
37 const float TorsoHeight = 0.75f;
38 
39 }
40 
41 #endif
42