Made Camera Paths take the shortest way between two head rotation values (instead of spinning unnecessarily often)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user