Velocity fix

This commit is contained in:
Sam 2016-07-24 21:41:42 +01:00
parent 76da92f42e
commit ef797aa599

View File

@ -158,19 +158,19 @@ public class QuiverPayload extends TeamGame
{
_minecart.setVelocity(_minecart.getVelocity().normalize().multiply(0.1));
}
_lastDirection = _minecart.getVelocity();
}
else
{
if (_lastDirection == null)
{
_minecart.setVelocity(new Vector(0.1, 0, 0));
_lastDirection = _minecart.getVelocity();
}
else
{
_minecart.setVelocity(_minecart.getVelocity().normalize().multiply(0.1));
_lastDirection = _minecart.getVelocity();
}
_lastDirection = _minecart.getVelocity();
}
}