UMjFrame¶
Represents a MuJoCo frame (mjsFrame) in the spec.
Frames are used for coordinate transformations and are compiled away by the MuJoCo compiler into relative offsets for attached elements. This component does not support runtime binding.
| Attribute | Value |
|---|---|
| Kind | Class |
| UE Macro | UCLASS |
| Inherits | UMjComponent |
| Blueprint Spawnable | ✅ Yes |
Properties¶
Private Properties¶
| Property | Type | Description |
|---|---|---|
m_SpecElements |
TArray<TScriptInterface<IMjSpecElement>> | Cached list of child elements for registration. |
m_SpecElements¶
Cached list of child elements for registration.
- Type: TArray<TScriptInterface<IMjSpecElement>>
Functions¶
Public Functions¶
General¶
| Function | Returns | Description |
|---|---|---|
Setup() |
void | Registers this frame to the MuJoCo spec. |
Bind() |
void | Empty implementation as frames are compiled away and don't exist at runtime in mjModel/mjData. |
RegisterToSpec() |
void | Frames are not used in SpecElement flow directly but via Setup. |
ImportFromXml() |
void | Imports pos/orientation from an XML node. |
Setup¶
Registers this frame to the MuJoCo spec.
- Signature:
Setup(USceneComponent*Parent,mjsBody*ParentBody, class FMujocoSpecWrapper* Wrapper)
Bind¶
Empty implementation as frames are compiled away and don't exist at runtime in mjModel/mjData.
- Signature:
Bind(mjModel*Model,mjData*Data,const FString&Prefix)
RegisterToSpec¶
Frames are not used in SpecElement flow directly but via Setup.
- Signature:
RegisterToSpec(class FMujocoSpecWrapper& Wrapper,mjsBody*ParentBody)
ImportFromXml¶
Imports pos/orientation from an XML node.
- Signature:
ImportFromXml(const class FXmlNode*Node, const FMjCompilerSettings& CompilerSettings)