From f130b841768f9b8ab62b9a4179db16dabe5768ef 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: 0d4fcd5d387bca9f8be8267951dfd7e862abc1b2 [formerly fe1a2fe36aaa79e5ae8aadb35dad9ead040dec95] [formerly f4c9472b944a37b42510b8c54eb9daed6d2c254b [formerly 3ed39592efc153cd2ca03e30408b7ec510ee3470]] Former-commit-id: f6c52aee5578ff849f8d9e771eb593a65beec43a [formerly 828ff673ee84618e011d92613d94b81b0b71abb1] Former-commit-id: bc722f914f5362c2b4bb514d0a638db48c5c51db --- 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); } }