aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/example/demo.cpp1
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 });