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
This commit is contained in:
Lynix 2016-08-09 00:08:57 +02:00
parent 77e822b954
commit 634c146038
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace Ndk
NodeComponent& node = entity->GetComponent<NodeComponent>();
const VelocityComponent& velocity = entity->GetComponent<VelocityComponent>();
node.Move(velocity.linearVelocity * elapsedTime);
node.Move(velocity.linearVelocity * elapsedTime, Nz::CoordSys_Global);
}
}