Class URotationActuator
Class URotationActuator
- Defined in File RotationActuator.h
Inheritance Relationships
Base Types
-
public UActorComponent -
public IScholaActuator(Class IScholaActuator)
class URotationActuator : public UActorComponent, public IScholaActuatorSource: Source/Schola/Interactors/Public/Actuators/RotationActuator.h
Dependencies: FBoxPoint, FBoxSpaceDimension
Rotation actuator that applies rotation changes to an Actor.
Accepts a BoxPoint action where each dimension corresponds to Pitch, Yaw, or Roll rotation. Rotation can be applied as raw delta values or normalized [0,1] values that are rescaled.
Public Functions
| Symbol | Details |
|---|---|
GetActionSpace_Implementation | Get the action space for this actuator. |
ConvertActionToFRotator | Convert a Box Point with values to an FRotator. |
TakeAction_Implementation | Apply a rotation action to the owner actor. |
GenerateId | Generate a unique ID string for this actuator. |
GetActionSpace_Implementation
virtual voidGetActionSpace_Implementation(FInstancedStruct &OutActionSpace) constGet the action space for this actuator.
Returns a BoxSpace with dimensions for each enabled rotation axis (Pitch, Yaw, Roll). If bNormalizeAndRescale is true, dimensions are [0,1], otherwise uses the configured bounds.
Parameters
OutActionSpace – [out] The action space definition to be populated
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutActionSpace | FInstancedStruct & | The action space definition to be populated |
Attributes: const, virtual
Source: Source/Schola/Interactors/Public/Actuators/RotationActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/RotationActuator.cpp
ConvertActionToFRotator
FRotator ConvertActionToFRotator(const FBoxPoint &Action)Convert a Box Point with values to an FRotator.
Interprets the BoxPoint values as rotation angles for enabled dimensions. Applies rescaling if bNormalizeAndRescale is enabled.
Parameters
Action – [in] BoxPoint that will be converted
Returns:
FRotator equivalent to the converted BoxPoint
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FBoxPoint & | BoxPoint that will be converted |
Source: Source/Schola/Interactors/Public/Actuators/RotationActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/RotationActuator.cpp
TakeAction_Implementation
virtual void TakeAction_Implementation(const FInstancedStruct &InAction)Apply a rotation action to the owner actor.
Converts the action BoxPoint to a rotation delta and applies it to the owning actor’s local rotation.
Parameters
InAction – [in] The action to apply (BoxPoint)
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InAction | const FInstancedStruct & | The action to apply (BoxPoint) |
Attributes: virtual
Source: Source/Schola/Interactors/Public/Actuators/RotationActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/RotationActuator.cpp
GenerateId
FString GenerateId() constGenerate a unique ID string for this actuator.
Returns:
FString describing the actuator configuration (e.g., “Rotation_Pitch_-180.0_180.0_Yaw_-180.0_180.0”)
Attributes: const
Source: Source/Schola/Interactors/Public/Actuators/RotationActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/RotationActuator.cpp
Public Members
| Symbol | Details |
|---|---|
PitchBounds | The Min/Max value for the Pitch of the tracked rotation (rotation around Y-axis) |
RollBounds | The Min/Max value for the Roll of the tracked rotation (rotation around X-axis) |
YawBounds | The Min/Max value for the Yaw of the tracked rotation (rotation around Z-axis) |
bHasPitch | Toggle for whether this actuator rotates the Agent along the Pitch dimension. |
bHasRoll | Toggle for whether this actuator rotates the Agent along the Roll dimension. |
bHasYaw | Toggle for whether this actuator rotates the Agent along the Yaw dimension. |
TeleportType | Type of teleportation to use. |
bSweep | Toggle for whether to sweep while teleporting the actor. |
bNormalizeAndRescale | Toggle for whether to use a [0,1] scale that is then rescaled onto the whole range for each rotator. |
OnRotationDelegate | A delegate invoked when this actuator receives input from a brain. |
PitchBounds
FBoxSpaceDimension PitchBounds = FBoxSpaceDimension(-180, 180)The Min/Max value for the Pitch of the tracked rotation (rotation around Y-axis)
RollBounds
FBoxSpaceDimension RollBounds = FBoxSpaceDimension(-180, 180)The Min/Max value for the Roll of the tracked rotation (rotation around X-axis)
YawBounds
FBoxSpaceDimension YawBounds = FBoxSpaceDimension(-180, 180)The Min/Max value for the Yaw of the tracked rotation (rotation around Z-axis)
bHasPitch
bool bHasPitch = trueToggle for whether this actuator rotates the Agent along the Pitch dimension.
bHasRoll
bool bHasRoll = trueToggle for whether this actuator rotates the Agent along the Roll dimension.
bHasYaw
bool bHasYaw = trueToggle for whether this actuator rotates the Agent along the Yaw dimension.
TeleportType
ETeleportType TeleportType = ETeleportType::NoneType of teleportation to use.
See SetActorLocation documentation for more details.
bSweep
bool bSweepToggle for whether to sweep while teleporting the actor.
See SetActorLocation documentation for more details.
bNormalizeAndRescale
bool bNormalizeAndRescale = falseToggle for whether to use a [0,1] scale that is then rescaled onto the whole range for each rotator.
Otherwise, uses the raw output as the delta rotation.
OnRotationDelegate
FOnRotationInputSignature OnRotationDelegateA delegate invoked when this actuator receives input from a brain.
Useful for debugging and logging.