mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Update tunnel detection to reverse all axes
This commit is contained in:
parent
bc035b7e1e
commit
e145d4955c
1 changed files with 2 additions and 1 deletions
|
@ -496,8 +496,9 @@ Baseball.prototype = {
|
|||
print("Pitch: ", pitch);
|
||||
if (Math.abs(pitch) < 15) {
|
||||
print("Reversing hit");
|
||||
myVelocity.z *= -1;
|
||||
myVelocity.x *= -1;
|
||||
myVelocity.y *= -1;
|
||||
myVelocity.z *= -1;
|
||||
Vec3.length(myVelocity);
|
||||
foul = false;
|
||||
speedMultiplier = 10;
|
||||
|
|
Loading…
Reference in a new issue