diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 15:37:39 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 15:37:39 +0100 |
commit | 3bda25f0319cbb148186e777e3d3d55678424d9b (patch) | |
tree | d4450e4ddd280a942831d57da3d52854f8ab0b7c /src/example | |
parent | 65906bc4de308c5841154a3d25368ade2eb38947 (diff) |
fix SystemManager
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/demo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/demo.cpp b/src/example/demo.cpp index c0c8062..4bc1c7c 100644 --- a/src/example/demo.cpp +++ b/src/example/demo.cpp @@ -12,11 +12,12 @@ using namespace std; class PlayerController : public Script { void update() { Rigidbody & body = get_component<Rigidbody>(); - logf("linear_velocity = {}", body.data.linear_velocity); if (get_key_state(Keycode::SPACE)) { body.add_force_linear({ 0, -1 }); } + + logf("linear_velocity = {}", body.data.linear_velocity); } }; |