FPBDJointUtilities::ConditionParentInertia

Increase the IParent inertia so that its largest component is at least MinRatio times the largest IChild component.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDJointConstraintUtilities.h

Include

#include "Chaos/PBDJointConstraintUtilities.h"

Source

/Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/PBDJointConstraintUtilities.cpp

Syntax

static FVec3 ConditionParentInertia
(
    const FVec3 & IParent,
    const FVec3 & IChild,
    const FReal MinRatio
)

Remarks

Increase the IParent inertia so that its largest component is at least MinRatio times the largest IChild component. This is used to condition joint chains for more robust solving with low iteration counts or larger time steps.

Returns

The max/min ratio of InI elements.

Parameters

Parameter

Description

IParent

The input inertia.

IChild

The input inertia.

OutIParent

The output inertia.

MinRatio

Parent inertia will be at least this multiple of child inertia

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss