Skip to content

Commit b5c05dc

Browse files
committed
- changed Position.cs and Rotation.cs axes (x,y,z) from uppercase to lowercase because uppercase will break with new version of camera2
1 parent 29dff02 commit b5c05dc

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

MovementScriptGenerator/Modules/Moves/Circle.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,21 @@ public override List<Frame> GenerateFrames()
6262
frame.Position = new Position();
6363
frame.Rotation = new Rotation();
6464

65-
frame.Position.X = (float)Math.Sin(radiant) * Distance;
66-
frame.Position.Y = Height;
67-
frame.Position.Z = (float)Math.Cos(radiant) * Distance;
65+
frame.Position.x = (float)Math.Sin(radiant) * Distance;
66+
frame.Position.y = Height;
67+
frame.Position.z = (float)Math.Cos(radiant) * Distance;
6868

69-
frame.Rotation.Z = RotZ;
70-
frame.Rotation.X = RotX;
71-
frame.Rotation.Y = usedDegree -180;
69+
frame.Rotation.z = RotZ;
70+
frame.Rotation.x = RotX;
71+
frame.Rotation.y = usedDegree -180;
7272

7373
if (usedDegree == 0 || usedDegree == 180 || usedDegree == 360)
7474
{
75-
frame.Position.X = 0;
75+
frame.Position.x = 0;
7676
}
7777
if (usedDegree == 90 || usedDegree == 270)
7878
{
79-
frame.Position.Z = 0;
79+
frame.Position.z = 0;
8080
}
8181

8282

MovementScriptGenerator/Modules/Moves/Spiral.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ public override List<Frame> GenerateFrames()
9797
{
9898
Position = new Position()
9999
{
100-
X = xHorizontal * zVertical * StartDistance,
101-
Y = yVertical * StartDistance + Height,
102-
Z = zHorizontal * zVertical * StartDistance
100+
x = xHorizontal * zVertical * StartDistance,
101+
y = yVertical * StartDistance + Height,
102+
z = zHorizontal * zVertical * StartDistance
103103
},
104104

105105
Rotation = new Rotation()
106106
{
107-
X = VerticalRot,
108-
Y = HorizontalRot - 180,
109-
Z = 0
107+
x = VerticalRot,
108+
y = HorizontalRot - 180,
109+
z = 0
110110
},
111111

112112
HoldTime = StartHold,
@@ -131,16 +131,16 @@ public override List<Frame> GenerateFrames()
131131
{
132132
Position = new Position()
133133
{
134-
X = xHorizontal * zVertical * spiralFrameDistance,
135-
Y = yVertical * spiralFrameDistance + Height,
136-
Z = zHorizontal * zVertical * spiralFrameDistance
134+
x = xHorizontal * zVertical * spiralFrameDistance,
135+
y = yVertical * spiralFrameDistance + Height,
136+
z = zHorizontal * zVertical * spiralFrameDistance
137137
},
138138

139139
Rotation = new Rotation()
140140
{
141-
X = VerticalRot,
142-
Y = HorizontalRot - 180,
143-
Z = SpiralClockwise ? -rotation : rotation
141+
x = VerticalRot,
142+
y = HorizontalRot - 180,
143+
z = SpiralClockwise ? -rotation : rotation
144144
},
145145

146146
Duration = Duration / SpiralAmmount / 360,
@@ -158,16 +158,16 @@ public override List<Frame> GenerateFrames()
158158
{
159159
Position = new Position()
160160
{
161-
X = xHorizontal * zVertical * EndDistance,
162-
Y = yVertical * EndDistance + Height,
163-
Z = zHorizontal * zVertical * EndDistance
161+
x = xHorizontal * zVertical * EndDistance,
162+
y = yVertical * EndDistance + Height,
163+
z = zHorizontal * zVertical * EndDistance
164164
},
165165

166166
Rotation = new Rotation()
167167
{
168-
X = VerticalRot,
169-
Y = HorizontalRot - 180,
170-
Z = SpiralAmmount > 0 ? (SpiralClockwise ? -360 : 360) : 0
168+
x = VerticalRot,
169+
y = HorizontalRot - 180,
170+
z = SpiralAmmount > 0 ? (SpiralClockwise ? -360 : 360) : 0
171171
},
172172

173173
HoldTime = EndHold,

MovementScriptGenerator/Modules/Position.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ namespace MovementScriptGenerator.Modules
33
{
44
public class Position
55
{
6-
public float X { get; set; }
7-
public float Y { get; set; }
8-
public float Z { get; set; }
6+
public float x { get; set; }
7+
public float y { get; set; }
8+
public float z { get; set; }
99
}
1010
}

MovementScriptGenerator/Modules/Rotation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ namespace MovementScriptGenerator.Modules
33
{
44
public class Rotation
55
{
6-
public float X { get; set; }
7-
public float Y { get; set; }
8-
public float Z { get; set; }
6+
public float x { get; set; }
7+
public float y { get; set; }
8+
public float z { get; set; }
99
}
1010
}

0 commit comments

Comments
 (0)