mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-18 13:31:34 +01:00
Actually fixed cannons this time...
This commit is contained in:
parent
62f15bb101
commit
7ef564799e
@ -18,7 +18,7 @@ public class CannonDestination implements MVDestination {
|
|||||||
|
|
||||||
public Vector getVelocity() {
|
public Vector getVelocity() {
|
||||||
double pitchRadians = Math.toRadians(location.getPitch());
|
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 x = Math.sin(yawRadians) * speed * -1;
|
||||||
double y = Math.sin(pitchRadians) * speed * -1;
|
double y = Math.sin(pitchRadians) * speed * -1;
|
||||||
double z = Math.cos(yawRadians) * speed;
|
double z = Math.cos(yawRadians) * speed;
|
||||||
|
Loading…
Reference in New Issue
Block a user