Skip to content

UMjSlideJoint

Autogenerated component representing the MuJoCo 'slide' element.

Subclass of UMjJoint. Sets Type = Slide in the constructor.

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

Properties

Public Properties

Property Type Description
Pos FVector
group int32
Axis FVector
limited bool
ActFrcLimited bool
actuatorgravcomp float
margin float
ref float
springref float
armature float
frictionloss float
m_JointView JointView The runtime view of the MuJoCo joint. Valid only after Bind() is called.
MjClassName FString Optional MuJoCo class name to inherit defaults from (string fallback).
DefaultClass class UMjDefault* Reference to a UMjDefault component for default class inheritance. Hidden from the
Type EMjJointType The type of joint (Hinge, Slide, Ball, Free). Default: Hinge (MuJoCo builtin).

Pos

Override-enabled (false)

  • Type: FVector
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint|Spatial Pose

group

Override-enabled (bOverride_group)

  • Type: int32
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

Axis

Override-enabled (bOverride_Axis)

  • Type: FVector
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

limited

Override-enabled (bOverride_limited)

  • Type: bool
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

ActFrcLimited

Override-enabled (bOverride_ActFrcLimited)

  • Type: bool
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

actuatorgravcomp

Override-enabled (bOverride_actuatorgravcomp)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

margin

Override-enabled (bOverride_margin)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

ref

Override-enabled (bOverride_ref)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

springref

Override-enabled (bOverride_springref)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

armature

Override-enabled (bOverride_armature)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

frictionloss

Override-enabled (bOverride_frictionloss)

  • Type: float
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

m_JointView

The runtime view of the MuJoCo joint. Valid only after Bind() is called.

MjClassName

Optional MuJoCo class name to inherit defaults from (string fallback).

  • Type: FString
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint

DefaultClass

Reference to a UMjDefault component for default class inheritance. Hidden from the

  • Type: class UMjDefault*
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint
  • Notes: Override-enabled (false)

Type

The type of joint (Hinge, Slide, Ball, Free). Default: Hinge (MuJoCo builtin).

  • Type: EMjJointType
  • Editor: ✏️ EditAnywhere
  • Blueprint: 🔵 ReadWrite
  • Category: MuJoCo|Joint
  • Notes: Override-enabled (bOverride_Type)

Functions

Public Functions

General

Function Returns Description
ImportFromXml() void Imports properties and override flags directly from the raw XML node.
RegisterToSpec() void Registers this joint to the MuJoCo spec.
GetMj() JointView& Semantic accessor for raw MuJoCo data and helper methods.
GetMjName() FString Gets the full prefixed name of this joint as it appears in the compiled MuJoCo model.
GetResolvedType() EMjJointType Returns the resolved joint type.
GetResolvedAxis() FVector Returns the resolved axis (UE coordinates).
GetResolvedRange() FVector2D Returns the resolved range [min, max]. (0,0) if unlimited.
GetResolvedLimited() bool Returns whether limits are resolved as enabled.
ImportFromXml

Imports properties and override flags directly from the raw XML node.

  • Signature: ImportFromXml(const class FXmlNode* Node, const FMjCompilerSettings& CompilerSettings)
RegisterToSpec

Registers this joint to the MuJoCo spec.

GetMj

Semantic accessor for raw MuJoCo data and helper methods.

GetMjName

Gets the full prefixed name of this joint as it appears in the compiled MuJoCo model.

  • Signature: GetMjName()
  • Returns: FString
GetResolvedType

Returns the resolved joint type.

GetResolvedAxis

Returns the resolved axis (UE coordinates).

  • Signature: GetResolvedAxis()
  • Returns: FVector
GetResolvedRange

Returns the resolved range [min, max]. (0,0) if unlimited.

  • Signature: GetResolvedRange()
  • Returns: FVector2D
GetResolvedLimited

Returns whether limits are resolved as enabled.

  • Signature: GetResolvedLimited()
  • Returns: bool

MuJoCo|Runtime

Function Returns Description
GetPosition() float Gets the current joint position (angle/slide).
SetPosition() void Sets the joint position (angle/slide) directly in mjData.
GetVelocity() float Gets the current joint velocity.
SetVelocity() void Sets the joint velocity.
GetAcceleration() float Gets the joint acceleration (qacc). Valid for 1-DOF joints (Hinge/Slide). Returns 0 for others.
GetJointRange() FVector2D Gets the joint range [min, max] from the compiled model. Returns (0,0) if limits are disabled.
GetJointState() FMuJoCoJointState Gets the complete runtime state (Pos, Vel, Accel) for this joint.
GetWorldAnchor() FVector Gets the world-space anchor position of this joint (UE coordinates, cm).
GetWorldAxis() FVector Gets the world-space axis of this joint (unit vector, UE coordinates).
GetPosition

Gets the current joint position (angle/slide).

  • Signature: GetPosition()
  • Blueprint: 🔵 Callable
  • Returns: float
SetPosition

Sets the joint position (angle/slide) directly in mjData.

  • Signature: SetPosition(float NewPosition)
  • Blueprint: 🔵 Callable
GetVelocity

Gets the current joint velocity.

  • Signature: GetVelocity()
  • Blueprint: 🔵 Callable
  • Returns: float
SetVelocity

Sets the joint velocity.

  • Signature: SetVelocity(float NewVelocity)
  • Blueprint: 🔵 Callable
GetAcceleration

Gets the joint acceleration (qacc). Valid for 1-DOF joints (Hinge/Slide). Returns 0 for others.

  • Signature: GetAcceleration()
  • Blueprint: 🔵 Callable
  • Returns: float
GetJointRange

Gets the joint range [min, max] from the compiled model. Returns (0,0) if limits are disabled.

  • Signature: GetJointRange()
  • Blueprint: 🔵 Callable
  • Returns: FVector2D
GetJointState

Gets the complete runtime state (Pos, Vel, Accel) for this joint.

GetWorldAnchor

Gets the world-space anchor position of this joint (UE coordinates, cm).

  • Signature: GetWorldAnchor()
  • Blueprint: 🔵 Callable
  • Returns: FVector
GetWorldAxis

Gets the world-space axis of this joint (unit vector, UE coordinates).

  • Signature: GetWorldAxis()
  • Blueprint: 🔵 Callable
  • Returns: FVector