From 29a7706d2969a4d50e76d9ffb89aac11e0b34e0b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 25 Nov 2022 21:40:31 +0200 Subject: [PATCH] Add missing initializer for player ship's moment of inertia --- examples/bassteroids/source/playercontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bassteroids/source/playercontroller.cpp b/examples/bassteroids/source/playercontroller.cpp index 939d838..606f34e 100644 --- a/examples/bassteroids/source/playercontroller.cpp +++ b/examples/bassteroids/source/playercontroller.cpp @@ -8,7 +8,7 @@ using namespace Msp; PlayerController::PlayerController(Game::Stage &s): System(s), - player_setup{ .physical={ .body={ .mass=1 }, .collider={ .type=ColliderType::CIRCLE, .radius=0.8f }}, + player_setup{ .physical={ .body={ .mass=1, .moment_of_inertia=0.8f }, .collider={ .type=ColliderType::CIRCLE, .radius=0.8f }}, .mesh={ .object_name="Bass guitar.object" }, .speed=12.0f, .turn_rate=4.71f } { } -- 2.45.2