UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MassProperties.h File Reference
#include "Chaos/Core.h"
#include "Chaos/Defines.h"
#include "Chaos/Matrix.h"
#include "Chaos/Rotation.h"
#include "Chaos/Vector.h"
#include "Containers/ArrayView.h"

Go to the source code of this file.

Classes

struct  Chaos::FMassProperties
 

Namespaces

namespace  Chaos
 

Functions

template<typename T >
TRotation< T, 3 > CHAOS_API Chaos::TransformToLocalSpace (PMatrix< T, 3, 3 > &Inertia)
 
void Chaos::TransformToLocalSpace (FMassProperties &MassProperties)
 
template<typename T , typename TSurfaces >
void CHAOS_API Chaos::CalculateVolumeAndCenterOfMass (const TParticles< T, 3 > &Vertices, const TSurfaces &Surfaces, T &OutVolume, TVec3< T > &OutCenterOfMass)
 
template<typename T , typename TSurfaces >
void CHAOS_API Chaos::CalculateVolumeAndCenterOfMass (const TArray< TVec3< T > > &Vertices, const TSurfaces &Surfaces, T &OutVolume, TVec3< T > &OutCenterOfMass)
 
template<typename T , typename TSurfaces >
void CHAOS_API Chaos::CalculateVolumeAndCenterOfMass (const TArray< UE::Math::TVector< T > > &Vertices, const TSurfaces &Surfaces, T &OutVolume, UE::Math::TVector< T > &OutCenterOfMass)
 
template<typename TSurfaces >
FMassProperties CHAOS_API Chaos::CalculateMassProperties (const FParticles &Vertices, const TSurfaces &Surfaces, const FReal Mass)
 
template<typename T , typename TSurfaces >
void CHAOS_API Chaos::CalculateInertiaAndRotationOfMass (const TParticles< T, 3 > &Vertices, const TSurfaces &Surfaces, const T Density, const TVec3< T > &CenterOfMass, PMatrix< T, 3, 3 > &OutInertiaTensor, TRotation< T, 3 > &OutRotationOfMass)
 
template<typename T , typename TSurfaces >
void CHAOS_API Chaos::CalculateInertiaAndRotationOfMass (const TArray< UE::Math::TVector< T > > &Vertices, const TSurfaces &Surfaces, const T Density, const UE::Math::TVector< T > &CenterOfMass, PMatrix< T, 3, 3 > &OutInertiaTensor, TRotation< T, 3 > &OutRotationOfMass)
 
void Chaos::CalculateVolumeAndCenterOfMass (const FBox &BoundingBox, FVector::FReal &OutVolume, FVector &OutCenterOfMass)
 
void Chaos::CalculateInertiaAndRotationOfMass (const FBox &BoundingBox, const FVector::FReal Density, FMatrix33 &OutInertiaTensor, FRotation3 &OutRotationOfMass)
 
FMassProperties Chaos::Combine (const TArray< FMassProperties > &MPArray)
 
FMassProperties Chaos::CombineWorldSpace (const TArray< FMassProperties > &MPArray)
 
bool Chaos::CalculateMassPropertiesOfImplicitUnion (Chaos::FMassProperties &OutMassProperties, const Chaos::FRigidTransform3 &WorldTransform, const Chaos::FImplicitObjectUnion &ImplicitUnion, Chaos::FReal InDensityKGPerCM)
 
bool Chaos::CalculateMassPropertiesOfImplicitType (Chaos::FMassProperties &OutMassProperties, const Chaos::FRigidTransform3 &WorldTransform, const Chaos::FImplicitObject *ImplicitObject, Chaos::FReal InDensityKGPerCM)
 
void Chaos::CalculateMassPropertiesFromShapeCollection (Chaos::FMassProperties &OutProperties, int32 InNumShapes, Chaos::FReal InDensityKGPerCM, const TArray< bool > &bContributesToMass, TFunction< Chaos::FPerShapeData *(int32 ShapeIndex)> GetShapeDelegate)
 
template<typename T >
Chaos::KgCm3ToKgM3 (T Density)
 
template<typename T >
Chaos::KgM3ToKgCm3 (T Density)
 
template<typename T >
Chaos::GCm3ToKgCm3 (T Density)
 
template<typename T >
Chaos::KgCm3ToGCm3 (T Density)