From 957b6162d664760b27e653d568083879b584e106 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 9 Aug 2016 00:08:57 +0200 Subject: [PATCH] SDK/VelocitySystem: Make VelocitySystem move the node in the global space Former-commit-id: e9606a2ab22e8cf83958ee86b3615b88ef3b3e4b [formerly cd7a2faa614e7052831ad6358956371edb310f00] [formerly dd5570feefd02088d526dc26321edf5d676d06f4 [formerly 410c33af9e42065747ed2b31f3f0cc5c9a8bb247]] Former-commit-id: 2c1ca0aed7d3a7d7e95fbe3bc578cbbbf06417ce [formerly e1e0a73b7dea6b81d8ac45794c879023078c0f6a] Former-commit-id: c35b82110d33f4107b3a662163add6c3b95c26b6 --- SDK/src/NDK/Systems/VelocitySystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDK/src/NDK/Systems/VelocitySystem.cpp b/SDK/src/NDK/Systems/VelocitySystem.cpp index 882b45728..2d3264039 100644 --- a/SDK/src/NDK/Systems/VelocitySystem.cpp +++ b/SDK/src/NDK/Systems/VelocitySystem.cpp @@ -22,7 +22,7 @@ namespace Ndk NodeComponent& node = entity->GetComponent(); const VelocityComponent& velocity = entity->GetComponent(); - node.Move(velocity.linearVelocity * elapsedTime); + node.Move(velocity.linearVelocity * elapsedTime, Nz::CoordSys_Global); } }