From 634c146038c1c9d8a720eb4e8c3349a904ca527d 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: 08ebdc2f27d0db5593bdc8015f5a015b8f0c00d1 [formerly ce4757ee938c9650369249cbfe5ebbafa913e23b] [formerly 9a39f1cef2d4c8b84b606a0f09a06b10e0a0a4e6 [formerly b76eea176c029afc16ce82441b495f15c6336223]] Former-commit-id: a22651c5e792ef56ab07faf41f6915dfd06987f4 [formerly 0b739de8689d6718e123915d5b4f78d8c96a96dc] Former-commit-id: 4630834309173de5f659a14fe98d7eaedd0430bd --- 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); } }