From 22abed597868511c595c1226e9137beca7837576 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 14 Dec 2024 14:28:37 +0100 Subject: add logging --- src/example/demo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); + 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 }); -- cgit v1.2.3