4 #include <msp/game/component.h>
5 #include <msp/geometry/angle.h>
6 #include <msp/linal/vector.h>
13 class RigidBody: public Msp::Game::Component
16 using Setup = RigidBodySetup;
20 Msp::LinAl::Vector<float, 2> velocity;
23 RigidBody(Msp::Game::Handle<Msp::Game::Entity>, const Setup &);
25 float get_mass() const { return setup.mass; }
26 void set_velocity(const Msp::LinAl::Vector<float, 2> &);
27 const Msp::LinAl::Vector<float, 2> &get_velocity() const { return velocity; }