hello.
after rebuild the Physics asset of my character i got this warning (lots) each time i open the physhics asset.
LogPhysics:Warning: FConstraintInstance::GetRefFrame : Contained scale.
What mean?
hello.
after rebuild the Physics asset of my character i got this warning (lots) each time i open the physhics asset.
LogPhysics:Warning: FConstraintInstance::GetRefFrame : Contained scale.
What mean?
Bump! nobody can explain a bit what mean?
FTransform FConstraintInstance::GetRefFrame(EConstraintFrame::Type Frame) const
{
FTransform Result;
if(Frame == EConstraintFrame::Frame1)
{
Result = FTransform(PriAxis1, SecAxis1, PriAxis1 ^ SecAxis1, Pos1);
}
else
{
Result = FTransform(PriAxis2, SecAxis2, PriAxis2 ^ SecAxis2, Pos2);
}
float Error = FMath::Abs( Result.GetDeterminant() - 1.0f );
if(Error > 0.01f)
{
UE_LOG(LogPhysics, Warning, TEXT("FConstraintInstance::GetRefFrame : Contained scale."));
}
return Result;
}
As you see Constraint’s transform contains Scale component, but I don’t know how You did that;) Maybe your skeletal mesh is broken or You upscaled constraints in PHAT:)
I have same issue
"
LogPhysics:Warning: FConstraintInstance::GetRefFrame : Contained scale.
"
Is there any way to fix it?
In my case the reason was that my Blender model had objects whose scale was not 1.0, 1.0, 1.0. I had to ‘Apply Object Transform’ (select ‘Scale’) in Blender on the scaled objects, re-export and then the error was gone.