unreal.MeshComponentHelper
¶
- class unreal.MeshComponentHelper(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LearningAgentsHelper
A helper for getting various properties from a MeshComponent.
C++ Source:
Plugin: LearningAgents
Module: LearningAgents
File: LearningAgentsHelpers.h
Editor Properties: (see get_editor_property/set_editor_property)
manager_component
(LearningAgentsManagerComponent): [Read-Only] Reference to the Manager Component this helper is associated with.
- classmethod add_mesh_component_helper(manager_component, name='None') MeshComponentHelper ¶
Adds a new mesh component helper to the given manager component.
- Parameters:
manager_component (LearningAgentsManagerComponent) – The manager component to add this helper to (such as an Interactor or Trainer).
name (Name) – The name of this new helper. Used for debugging.
- Returns:
The newly created helper.
- Return type:
- get_mesh_bone_positions(agent_id=-1, mesh_component, bone_names) Array[Vector] ¶
Gets the bone positions for a set of bones of the mesh component in world space.
- Parameters:
agent_id (int32) – The agent id to run the helper for.
mesh_component (MeshComponent) – The mesh component to use.
- Returns:
out_bone_positions (Array[Vector]): The output array of bone positions.
- Return type: