diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 20:03:14 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 20:03:14 +0100 |
commit | 3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch) | |
tree | 30d908c427ff9b4ee53402fbf52cb15704e58623 /src/example/physics.cpp | |
parent | fde229c24dcbd1ed844880a35eabddb88279802b (diff) |
merge #25 + nitpicking
Diffstat (limited to 'src/example/physics.cpp')
-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, |