Made Camera Paths take the shortest way between two head rotation values (instead of spinning unnecessarily often)

This commit is contained in:
CrushedPixel
2015-05-09 16:57:16 +02:00
parent c95e66efbc
commit 5fda527cb0
3 changed files with 59 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
public class PositionKeyframe extends Keyframe {
private final Position position;
private Position position;
public PositionKeyframe(int realTime, Position position) {
super(realTime);
@@ -15,6 +15,8 @@ public class PositionKeyframe extends Keyframe {
return position;
}
public void setPosition(Position position) { this.position = position; }
@Override
public boolean equals(Object o2) {
if(o2 == null) return false;