Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Feb 28, 2024
1 parent c184991 commit c410059
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AxSlime/Bridge/BridgeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ private void UpdateTracker(AxisTracker axis)
RegisterTracker(axis, slime);
}

Quaternion jankQuat = new Quaternion( //Quaternion Left to right convert
// Quaternion left to right conversion
Quaternion slimeQuat = new Quaternion(
-axis.Rotation.X,
axis.Rotation.Y,
axis.Rotation.Z,
axis.Rotation.W
);

slime.SendPacket(new Packet17RotationData() { Rotation = AxesOffset * jankQuat });
slime.SendPacket(new Packet17RotationData() { Rotation = AxesOffset * slimeQuat });

if (axis.HasAcceleration)
{
Expand Down

0 comments on commit c410059

Please sign in to comment.