diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 14:28:37 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 14:28:37 +0100 |
commit | 22abed597868511c595c1226e9137beca7837576 (patch) | |
tree | 1ea2b008ae4e66c79e5c0657092874108527fb4e | |
parent | 438f5301d8b14fa53fef73a4356f4a5171ac91af (diff) |
add logging
-rw-r--r-- | src/example/demo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/example/demo.cpp b/src/example/demo.cpp index 33f4d74..1aadc54 100644 --- a/src/example/demo.cpp +++ b/src/example/demo.cpp @@ -12,6 +12,7 @@ using namespace std; class PlayerController : public Script { void update() { Rigidbody & body = get_component<Rigidbody>(); + Log::logf("linear_velocity = {{{}, {}}}", body.data.linear_velocity.x, body.data.linear_velocity.y); if (get_key_state(Keycode::SPACE)) { body.add_force_linear({ 0, -1 }); |