diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/physics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/physics.cpp b/src/example/physics.cpp index a7e94f6..848f857 100644 --- a/src/example/physics.cpp +++ b/src/example/physics.cpp @@ -11,7 +11,7 @@ using namespace std; int main(int argc, char * argv[]) { GameObject * game_object; game_object = new GameObject(0, "Name", "Tag", Vector2{0, 0}, 0, 0); - game_object->add_component<Rigidbody>(Rigidbody::RigidbodyData{ + game_object->add_component<Rigidbody>(Rigidbody::Data{ .mass = 1, .gravity_scale = 1, .body_type = Rigidbody::BodyType::DYNAMIC, |