Skip to content

UMjInertial

Attribute Value
Kind Class
UE Macro UCLASS
Inherits UMjComponent
Blueprint Spawnable ✅ Yes

Properties

Public Properties

Property Type Description
Mass float Mass of the body.
DiagInertia FVector Diagonal inertia moments (ixx, iyy, izz). Used if FullInertia is empty.
FullInertia TArray<float> Full inertia tensor (3 or 6 elements). If 6: xx, yy, zz, xy, xz, yz.

Mass

Mass of the body.

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Inertial
  • Notes: Override-enabled (bOverride_Mass)

DiagInertia

Diagonal inertia moments (ixx, iyy, izz). Used if FullInertia is empty.

  • Type: FVector
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Inertial
  • Notes: Override-enabled (bOverride_DiagInertia)

FullInertia

Full inertia tensor (3 or 6 elements). If 6: xx, yy, zz, xy, xz, yz.

  • Type: TArray
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Inertial
  • Notes: Override-enabled (bOverride_FullInertia)

Functions

Public Functions

General

Function Returns Description
UMjInertial() Default constructor.
ImportFromXml() void Imports properties from a MuJoCo XML node.
Bind() void Binds this component to the live MuJoCo simulation.
RegisterToSpec() void Registers/Applies this inertial to the parent body in the spec.
UMjInertial

Default constructor.

  • Signature: UMjInertial()
ImportFromXml

Imports properties from a MuJoCo XML node.

  • Signature: ImportFromXml(const class FXmlNode* Node)
Bind

Binds this component to the live MuJoCo simulation.

  • Signature: Bind(mjModel* model, mjData* data, const FString& Prefix)
RegisterToSpec

Registers/Applies this inertial to the parent body in the spec.