EntityRigComponent ​
Inherits: RigComponent < Node3D
EntityRigComponent manages visual representation and effects for entities. Extends RigComponent with entity-specific skeleton, equipment, and animation logic. Works with any skeleton type (GeneralSkeleton or ModularSkeleton).
Variables ​
GeneralSkeleton | skeleton_3d |
Methods ​
void | initialize_rig( owner_node: Node3D ) |
void | look_at_object( object: Node3D, speed: int = Entity.FaceTargetSpeed.INSTANT ) |
void | apply_equipment( equipment: ItemInstance, slot_definition: EquipmentSlotDefinition = null, is_equipping: bool = true ) |
EntityAnimationPlayer | setup_entity_animation_player() |
void | set_head_tracking_target( target: Node3D = null, transition_duration: float = 0.5 ) |
Array[MeshInstance3D] | material_target_meshes( target: int, item: Object = null ) |
int | item_weapon_slot( item: Object ) |
bool | apply_vfx_material_effect( selection: VFXSelectionMaterial, _timer: Timer = null ) |
bool | cleanup_vfx_material_effect( selection: VFXSelectionMaterial ) |
Node3D | get_attachment_point_node( location: VFXSelection.VfxLocation ) |
void | set_skeleton_invisible() |
void | set_skeleton_visible() |
Variable descriptions ​
GeneralSkeleton skeleton_3d ​
The skeleton of the model of the entity.
Method descriptions ​
void initialize_rig( owner_node: Node3D ) ​
Builds the rig of the entity: its model, equipment and animation player.
void look_at_object( object: Node3D, speed: int = Entity.FaceTargetSpeed.INSTANT ) ​
Turns the head of the entity toward a node, at a speed.
void apply_equipment( equipment: ItemInstance, slot_definition: EquipmentSlotDefinition = null, is_equipping: bool = true ) ​
Main equipment interface — handles ALL visual processing
EntityAnimationPlayer setup_entity_animation_player() ​
Makes the animation player of the entity.
void set_head_tracking_target( target: Node3D = null, transition_duration: float = 0.5 ) ​
Makes the head follow a node (or nothing), blending over some seconds.
Array[MeshInstance3D] material_target_meshes( target: int, item: Object = null ) ​
The meshes a material effect goes on, by its target: the body, both weapons, a hand, or the hand the enchanted item is in (its slot's mesh slot)
int item_weapon_slot( item: Object ) ​
The weapon slot the item is shown in (the mesh slot of the equipment slot it is in; the main hand when it is not equipped)
bool apply_vfx_material_effect( selection: VFXSelectionMaterial, _timer: Timer = null ) ​
Puts a material effect on the model (a layer keyed by the selection; VFXMaterial puts its own layers on through material_target_meshes). False when nothing was there to take it.
bool cleanup_vfx_material_effect( selection: VFXSelectionMaterial ) ​
Takes a material effect off the model (only its layer).
Node3D get_attachment_point_node( location: VFXSelection.VfxLocation ) ​
The node of the model where a visual effect attaches.
void set_skeleton_invisible() ​
Hides the model.
void set_skeleton_visible() ​
Shows the model.