UBodySetup::CalculateMass

Calculates the mass.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodySetup.h

Include

#include "PhysicsEngine/BodySetup.h"

Source

/Engine/Source/Runtime/Engine/Private/PhysicsEngine/BodySetup.cpp

Syntax

virtual float CalculateMass
(
    const UPrimitiveComponent * Component
) const

Remarks

Calculates the mass. You can pass in the component where additional information is pulled from ( Scale, PhysMaterialOverride )

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