UPrimitiveComponent::CalculateMass

Returns the calculated mass in kg.

Windows
MacOS
Linux

Override Hierarchy

UPrimitiveComponent::CalculateMass()

USkeletalMeshComponent::CalculateMass()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h

Include

#include "Components/PrimitiveComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp

Syntax

virtual float CalculateMass
(
    FName BoneName
)

Remarks

Returns the calculated mass in kg. This is not 100% exactly the mass physx will calculate, but it is very close ( difference < 0.1kg ).

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