Fix catch animation

This commit is contained in:
JappaWakka 2023-08-01 12:24:35 +02:00
parent 3e51436c0e
commit 783e401c39
2 changed files with 4 additions and 1 deletions

View File

@ -122,12 +122,15 @@
Me.RotationSpeedVector = New Vector3(Me.RotationSpeedVector.X * -1, Me.RotationSpeedVector.Y * -1, Me.RotationSpeedVector.Z * -1) Me.RotationSpeedVector = New Vector3(Me.RotationSpeedVector.X * -1, Me.RotationSpeedVector.Y * -1, Me.RotationSpeedVector.Z * -1)
If DoRotation.X = 1.0F Then If DoRotation.X = 1.0F Then
ReadyAxis.X = 0.0F ReadyAxis.X = 0.0F
AmountRotated.X -= AmountRotated.X * 2
End If End If
If DoRotation.Y = 1.0F Then If DoRotation.Y = 1.0F Then
ReadyAxis.Y = 0.0F ReadyAxis.Y = 0.0F
AmountRotated.Y -= AmountRotated.Y * 2
End If End If
If DoRotation.Z = 1.0F Then If DoRotation.Z = 1.0F Then
ReadyAxis.Z = 0.0F ReadyAxis.Z = 0.0F
AmountRotated.Z -= AmountRotated.Z * 2
End If End If
Else Else
Me.Ready = True Me.Ready = True

View File

@ -197,7 +197,7 @@ nextIndex:
If Shakes(i) = False Then If Shakes(i) = False Then
CatchAnimation.AnimationRotate(BallEntity, False, 0, 0, 0.15F, 0, 0, MathHelper.PiOver4, 12 + i * 10, 0, False, False, True, True) CatchAnimation.AnimationRotate(BallEntity, False, 0, 0, 0.15F, 0, 0, MathHelper.PiOver4, 12 + i * 10, 0, False, False, True, True)
Else Else
CatchAnimation.AnimationRotate(BallEntity, False, 0, 0, -0.15F, 0, 0, 0 - MathHelper.PiOver4, 12 + i * 10, 0, False, False, True, True) CatchAnimation.AnimationRotate(BallEntity, False, 0, 0, -0.15F, 0, 0, -MathHelper.PiOver4, 12 + i * 10, 0, False, False, True, True)
End If End If
Next Next