Actually fixed cannons this time...

This commit is contained in:
Eric Stokes 2011-08-09 19:23:28 -06:00
parent 62f15bb101
commit 7ef564799e

View File

@ -18,7 +18,7 @@ public class CannonDestination implements MVDestination {
public Vector getVelocity() {
double pitchRadians = Math.toRadians(location.getPitch());
double yawRadians = Math.toRadians(location.getPitch());
double yawRadians = Math.toRadians(location.getYaw());
double x = Math.sin(yawRadians) * speed * -1;
double y = Math.sin(pitchRadians) * speed * -1;
double z = Math.cos(yawRadians) * speed;