Support wrapping for circular interpolated value (e.g. yaw/pitch)
This commit is contained in:
Submodule ReplayStudio updated: 4cb8cad6c8...9bb0df08e7
@@ -73,9 +73,9 @@ public class CameraProperties extends AbstractPropertyGroup {
|
|||||||
|
|
||||||
public static class Rotation extends AbstractProperty<Triple<Float, Float, Float>> {
|
public static class Rotation extends AbstractProperty<Triple<Float, Float, Float>> {
|
||||||
public final PropertyPart<Triple<Float, Float, Float>>
|
public final PropertyPart<Triple<Float, Float, Float>>
|
||||||
YAW = new PropertyParts.ForFloatTriple(this, true, PropertyParts.TripleElement.LEFT),
|
YAW = new PropertyParts.ForFloatTriple(this, true, 360, PropertyParts.TripleElement.LEFT),
|
||||||
PITCH = new PropertyParts.ForFloatTriple(this, true, PropertyParts.TripleElement.MIDDLE),
|
PITCH = new PropertyParts.ForFloatTriple(this, true, 360, PropertyParts.TripleElement.MIDDLE),
|
||||||
ROLL = new PropertyParts.ForFloatTriple(this, true, PropertyParts.TripleElement.RIGHT);
|
ROLL = new PropertyParts.ForFloatTriple(this, true, 360, PropertyParts.TripleElement.RIGHT);
|
||||||
|
|
||||||
private Rotation() {
|
private Rotation() {
|
||||||
super("rotation", "replaymod.gui.rotation", GROUP, Triple.of(0f, 0f, 0f));
|
super("rotation", "replaymod.gui.rotation", GROUP, Triple.of(0f, 0f, 0f));
|
||||||
|
|||||||
Reference in New Issue
Block a user