unreal.RotationAction
¶
- class unreal.RotationAction(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LearningAgentsAction
A rotation action.
C++ Source:
Plugin: LearningAgents
Module: LearningAgents
File: LearningAgentsActions.h
Editor Properties: (see get_editor_property/set_editor_property)
interactor
(LearningAgentsInteractor): [Read-Only] Reference to the Interactor this action is associated with.
- classmethod add_rotation_action(interactor, name='None', scale=180.000000) RotationAction ¶
Adds a new rotation action to the given agent interactor. Call during ULearningAgentsInteractor::SetupActions event.
- Parameters:
interactor (LearningAgentsInteractor) – The agent interactor to add this action to.
name (Name) – The name of this new action. Used for debugging.
scale (float) – Used to normalize the data for the action.
- Returns:
The newly created action.
- Return type:
- get_rotation_action(agent_id=-1) Rotator ¶
Gets the data for this action as a rotator. Call during ULearningAgentsInteractor::GetActions event.
- Parameters:
agent_id (int32) – The agent id to get data for.
- Returns:
The current action value.
- Return type: