Update tunnel detection to reverse all axes

This commit is contained in:
Ryan Huffman 2015-11-06 15:30:16 -08:00
parent bc035b7e1e
commit e145d4955c

View file

@ -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;