Skip to content

InteractableRigComponent ​

Inherits: RigComponent < Node3D

InteractableRigComponent is the runtime rig for InteractableObjects. Extends RigComponent with interactable-specific slot mapping and scene management. InteractableScene is the authored visual template; this class is the runtime manager. Only three attachment trigger areas exist: BASE, CHEST, and OVERHEAD. All entity VFX locations (hands, head, weapon, feet) are remapped to CHEST.

Variables ​

InteractableScenescene_instance
CollisionShape3Dcollision_shape
Marker3Dchest_marker
Marker3Doverhead_marker
Marker3Dnameplate_marker
Array[MeshInstance3D]mesh_instances[]

Methods ​

voidinitialize_rig( owner_node: Node3D )
Node3Dget_attachment_point_node( location: VFXSelection.VfxLocation )
boolapply_vfx_material_effect( selection: VFXSelectionMaterial, _timer: Timer = null )
boolcleanup_vfx_material_effect( selection: VFXSelectionMaterial )
Array[String]get_available_animations()
boolhas_animation( anim_name: String )
boolplay_animation( anim_name: String )
AnimationPlayerget_animation_player()

Variable descriptions ​

InteractableScene scene_instance ​

The authored InteractableScene instance — equivalent to GeneralSkeleton for entities.

CollisionShape3D collision_shape ​

Collision shape (sourced from scene_instance on initialize)

Marker3D chest_marker ​

Markers sourced from the scene instance

Marker3D overhead_marker ​

The marker above the object.

Marker3D nameplate_marker ​

The marker where the nameplate of the object goes.

Array[MeshInstance3D] mesh_instances = [] ​

Mesh instances discovered from the scene (used by base class via _get_mesh_instances)

Method descriptions ​

void initialize_rig( owner_node: Node3D ) ​

Builds the rig of the object: its scene and animation player.

Node3D get_attachment_point_node( location: VFXSelection.VfxLocation ) ​

The node of the object where a visual effect attaches.

bool apply_vfx_material_effect( selection: VFXSelectionMaterial, _timer: Timer = null ) ​

Puts a material effect on the meshes of the object.

bool cleanup_vfx_material_effect( selection: VFXSelectionMaterial ) ​

Takes the material effect off the meshes of the object.

Array[String] get_available_animations() ​

The animations of the scene of the object.

bool has_animation( anim_name: String ) ​

Does the scene of the object have this animation?

bool play_animation( anim_name: String ) ​

Plays an animation of the object. False when it has none.

AnimationPlayer get_animation_player() ​

The animation player of the object.