GetCurrentSwing1 Has sometime errors of 0.8 Radians!

Hi ,

Doing some tests , I’ve noticed that the UPhysicsConstraintComponent function GetCurrentSwing1, GetCurrentSwing2 and GetCurrentTwist when moving, it goes to the position mentioned but when retrieving the position , there is a very big difference, not only in value but its inverted in sign to what the value is needed to be sent to move it there.

Example:
Swin1Angle = 90.0;
FRotator MyRotator = FRotator(0.0.Swin1Angle,0.0);
MyContraint->SetAngularOrientationTarget(MyRotator);
→ It move to 90 degrees
real_swing = MyContraint->GetCurrentSwing2();
→ Gived like - (90.0 + 20.0)

Can anyone tell me what could be happening?

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form

Thanks