FAnimPhys::CalculateInertia

Calculate the inertia tensor of a shape

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Animation/AnimPhysicsSolver.h

Include

#include "Animation/AnimPhysicsSolver.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimPhysicsSolver.cpp

Syntax

static FMatrix CalculateInertia
(
    const TArray< FVector > & InVertices,
    const TArray< FIntVector > & InTriangles,
    const FVector & InCenterOfMass
)

Remarks

Calculate the inertia tensor of a shape

Parameters

Parameter

Description

InVertices

Verts in the shape

InTriangles

Triangles represented in InVertices

InCenterOfMass

Center of mass of the shape

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