Get Center Of Mass

Pure
GetCenterOfMass

Returns the world-space center of mass of a physics-enabled component.

Type: Pure (no side effects)
Category: Fortuna|Physics & Collision
Keywords: physics & collision

Inputs

NameTypeDefaultDescription
ComponentUPrimitiveComponent*Component parameter

Outputs

NameTypeDescription
ReturnValueFVectorReturnValue output

Example Use Cases

Example 1

Apply forces at the center of mass for realistic physics.

Example 2

Balance calculations for a stacking game.