Skip to content

Commit

Permalink
Draw distance joints from their pivots, not object origins
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoin Mcloughlin committed Sep 14, 2024
1 parent 0f60ad9 commit 0a54d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Robust.Client/Debugging/DebugPhysicsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ private void DrawJoint(DrawingHandleWorld worldHandle, Joint joint)
switch (joint)
{
case DistanceJoint:
worldHandle.DrawLine(xf1, xf2, JointColor);
worldHandle.DrawLine(p1, p2, JointColor);
break;
case PrismaticJoint prisma:
var pA = Transform.Mul(xfa, joint.LocalAnchorA);
Expand Down

0 comments on commit 0a54d18

Please sign in to comment.