Skip to content

Commit

Permalink
Fix DistanceJoints drawn by physics debug system (#5439)
Browse files Browse the repository at this point in the history
Co-authored-by: Eoin Mcloughlin <[email protected]>
  • Loading branch information
eoineoineoin and Eoin Mcloughlin committed Sep 18, 2024
1 parent afffb33 commit 9be0f03
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 9be0f03

Please sign in to comment.