Fix wallmount interactions (#12013)

This commit is contained in:
metalgearsloth
2022-10-21 00:20:52 +11:00
committed by GitHub
parent 16c3b6efdc
commit 2a2434dbea

View File

@@ -545,9 +545,11 @@ namespace Content.Shared.Interaction
range = (originPos.Position - targetPos.Position).Length;
}
}
// No fixtures, e.g. wallmounts.
else
{
originPos = Transform(origin).MapPosition;
targetRot = Transform(Transform(other).ParentUid).LocalRotation + otherAngle;
}
// Do a raycast to check if relevant