]> git.tdb.fi Git - libs/game.git/commitdiff
Add missing initializer for player ship's moment of inertia
authorMikko Rasa <tdb@tdb.fi>
Fri, 25 Nov 2022 19:40:31 +0000 (21:40 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 25 Nov 2022 19:40:31 +0000 (21:40 +0200)
examples/bassteroids/source/playercontroller.cpp

index 939d8384c200fb3dd0c7f4077e1b0b6b8b775b0a..606f34ea69ea7eb4fe70478f9c6880d8eb0d12c7 100644 (file)
@@ -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 }
 { }