mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix wrong velocity in ParabolaPick::getMathematicalPick
This commit is contained in:
parent
3ac9478101
commit
12a755310f
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ PickParabola ParabolaPick::getMathematicalPick() const {
|
|||
glm::vec3 position = currentParentTransform.transform(_mathPick.origin);
|
||||
glm::vec3 velocity = _mathPick.velocity;
|
||||
if (_scaleWithParent) {
|
||||
velocity = currentParentTransform.transform(velocity);
|
||||
} else {
|
||||
velocity = currentParentTransform.transformDirection(velocity);
|
||||
}
|
||||
glm::vec3 acceleration = _mathPick.acceleration;
|
||||
|
|
Loading…
Reference in a new issue