| 233 | } |
| 234 | |
| 235 | void MovementController::loadState(Json const& state) { |
| 236 | setPosition(jsonToVec2F(state.get("position"))); |
| 237 | setVelocity(jsonToVec2F(state.get("velocity"))); |
| 238 | setRotation(state.getFloat("rotation")); |
| 239 | } |
| 240 | |
| 241 | float MovementController::mass() const { |
| 242 | return m_mass.get(); |