Created AdvancedPositionKeyframeList, whose interpolation methods properly handle Spectator Keyframes using the SpectatorDataInterpolation

This commit is contained in:
CrushedPixel
2015-09-10 00:49:53 +02:00
parent 7196bc03bd
commit 0d30350967
4 changed files with 269 additions and 4 deletions

View File

@@ -62,6 +62,15 @@ public class AdvancedPosition extends Position {
return new AdvancedPosition(position.x, position.y, position.z, pitch, yaw, roll);
}
public void apply(AdvancedPosition toApply) {
this.x = toApply.getX();
this.y = toApply.getY();
this.z = toApply.getZ();
this.pitch = toApply.getPitch();
this.yaw = toApply.getYaw();
this.roll = toApply.getRoll();
}
@Override
public AdvancedPosition newInstance() {
return new AdvancedPosition();