Added PathPreviewRenderer to draw a Preview of the current Camera Path into the World
Added KeyframesModifyEvent to be dispatched whenever the ReplayHandler's Keyframe List is changed Refactored Event package Reworked Settings GUI
This commit is contained in:
@@ -82,6 +82,14 @@ public class Position {
|
||||
|
||||
public void setRoll(float roll) { this.roll = roll; }
|
||||
|
||||
public double distanceTo(double x, double y, double z) {
|
||||
return distanceTo(new Position(x, y, z, 0, 0));
|
||||
}
|
||||
|
||||
public double distanceTo(Position p2) {
|
||||
return Math.sqrt(Math.pow((p2.getX() - getX()), 2) + Math.pow((p2.getY() - getY()), 2) + Math.pow((p2.getZ() - getZ()), 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "X=" + x + ", Y=" + y + ", Z=" + z + ", Yaw=" + yaw + ", Pitch=" + pitch + ", Roll="+roll;
|
||||
|
||||
Reference in New Issue
Block a user