X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=examples%2Fbassteroids%2Fsource%2Fphysics.h;h=078d2e60aa31ac0c07f5b44ec11c7969a772a03e;hb=da195e0fa114b82708d7c2bbd6297590f34f79a4;hp=fdeb8b2c82167577c217d835584872ea037a8cdc;hpb=cf97839fff9ecb0783cecc9510994fb4a13f2dbe;p=libs%2Fgame.git diff --git a/examples/bassteroids/source/physics.h b/examples/bassteroids/source/physics.h index fdeb8b2..078d2e6 100644 --- a/examples/bassteroids/source/physics.h +++ b/examples/bassteroids/source/physics.h @@ -17,11 +17,14 @@ private: { Msp::Game::Handle entity; float inverse_mass = 1.0f; + float moment_of_inertia = 1.0f; Msp::LinAl::Vector external_force; + float external_torque = 0.0f; Msp::LinAl::Vector position; Msp::Geometry::Angle rotation; Msp::LinAl::Vector velocity; + Msp::Geometry::Angle angular_velocity; unsigned collision_count; Msp::LinAl::Vector position_adjust;