diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 18:46:06 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 18:46:06 +0100 |
commit | 0aa97807cb9b7f1d1850449dd5a5e45b961445ce (patch) | |
tree | 8f6a808669a39f5b8d91079ecb30c3d1f11e9e02 /src/example/physics.cpp | |
parent | bc2a31190b5afe7754b04e9c61fcda30e577d7d8 (diff) |
fix scene_manager example
Diffstat (limited to 'src/example/physics.cpp')
-rw-r--r-- | src/example/physics.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/example/physics.cpp b/src/example/physics.cpp index 2ebf779..ad663a0 100644 --- a/src/example/physics.cpp +++ b/src/example/physics.cpp @@ -11,8 +11,7 @@ using namespace std; int main(int argc, char * argv[]) { ComponentManager mgr{}; - GameObject & game_object - = mgr.new_object("Name", "Tag", Vector2{0, 0}, 0, 0); + GameObject game_object = mgr.new_object("Name", "Tag", Vector2{0, 0}, 0, 0); game_object.add_component<Rigidbody>(Rigidbody::Data{ .mass = 1, .gravity_scale = 1, |