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
This commit is contained in:
parent
7fe5710dd3
commit
f130b84176
|
|
@ -22,7 +22,7 @@ namespace Ndk
|
||||||
NodeComponent& node = entity->GetComponent<NodeComponent>();
|
NodeComponent& node = entity->GetComponent<NodeComponent>();
|
||||||
const VelocityComponent& velocity = entity->GetComponent<VelocityComponent>();
|
const VelocityComponent& velocity = entity->GetComponent<VelocityComponent>();
|
||||||
|
|
||||||
node.Move(velocity.linearVelocity * elapsedTime);
|
node.Move(velocity.linearVelocity * elapsedTime, Nz::CoordSys_Global);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue