diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 14:46:30 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 14:46:30 +0100 |
commit | 65906bc4de308c5841154a3d25368ade2eb38947 (patch) | |
tree | 7d1ead30c4804f723f1e29219b5c5b879c285b0e /src/example | |
parent | 22abed597868511c595c1226e9137beca7837576 (diff) |
add std::formatter for Vector2
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/demo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/demo.cpp b/src/example/demo.cpp index 1aadc54..c0c8062 100644 --- a/src/example/demo.cpp +++ b/src/example/demo.cpp @@ -12,7 +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); + logf("linear_velocity = {}", body.data.linear_velocity); if (get_key_state(Keycode::SPACE)) { body.add_force_linear({ 0, -1 }); |