aboutsummaryrefslogtreecommitdiff
path: root/src/example/demo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/demo.cpp')
-rw-r--r--src/example/demo.cpp3
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);
}
};