Setting constraint orientation has a bug

In file Engine\Source\Runtime\Engine\Private\PhysicsEngine\ConstraintInstance.cpp

In function FConstraintInstance::SetRefOrientation()

The line

FTransform URefTransform = FTransform(PriAxis1, SecAxis, PriAxis ^ SecAxis, RefPos);

is using PriAxis1 instead of PriAxis.

Current workaround I’m using : Instead of passing axes to SetRefOrientation(), use the axes to create a transform and pass it to SetRefFrame() which ends up passing the correct local pose to the joint.

Hello,

If you feel that PriAxis is being used incorrectly, please enter a Pull Request for this issue. You can do this here: https://github.com/EpicGames/UnrealEngine/compare?expand=1

Thank you for your report.

Have a great day