diff options
Diffstat (limited to 'Source/Physics/physics.h')
-rw-r--r-- | Source/Physics/physics.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/Source/Physics/physics.h b/Source/Physics/physics.h index 2bbe5e73..0b34a26c 100644 --- a/Source/Physics/physics.h +++ b/Source/Physics/physics.h @@ -26,23 +26,20 @@ const int _collision_floor = -999; -class Physics -{ - public: - vec3 gravity; - float wind; +class Physics { + public: + vec3 gravity; + float wind; - vec3 GetWind(vec3 check_where, float curr_game_time, float change_rate); + vec3 GetWind(vec3 check_where, float curr_game_time, float change_rate); - Physics() - :gravity(0,-9.8f,0) - {} + Physics() + : gravity(0, -9.8f, 0) {} - static Physics* Instance() - { - static Physics instance; - return &instance; - } + static Physics* Instance() { + static Physics instance; + return &instance; + } - void Update(); + void Update(); }; |