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
This commit is contained in:
parent
ad47350499
commit
957b6162d6
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue