mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +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);
|
print("Pitch: ", pitch);
|
||||||
if (Math.abs(pitch) < 15) {
|
if (Math.abs(pitch) < 15) {
|
||||||
print("Reversing hit");
|
print("Reversing hit");
|
||||||
myVelocity.z *= -1;
|
myVelocity.x *= -1;
|
||||||
myVelocity.y *= -1;
|
myVelocity.y *= -1;
|
||||||
|
myVelocity.z *= -1;
|
||||||
Vec3.length(myVelocity);
|
Vec3.length(myVelocity);
|
||||||
foul = false;
|
foul = false;
|
||||||
speedMultiplier = 10;
|
speedMultiplier = 10;
|
||||||
|
|
Loading…
Reference in a new issue