From 65906bc4de308c5841154a3d25368ade2eb38947 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 14 Dec 2024 14:46:30 +0100 Subject: add std::formatter for Vector2 --- src/example/demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/example') 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(); - 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 }); -- cgit v1.2.3