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?