Skip to content

URotationActuator

class URotationActuator : public UBoxActuator

Dependencies

This type depends on:

Inherits from: public UBoxActuator

Public Interface

Public Functions:

GetActionSpace

virtual FBoxSpace GetActionSpace() override

Get the Space bounding the inputs to this actuator.

Returns: BoxSpace containing the bounds of the inputs to this actuator

Note: This function must be implemented in the derived class.

Returns: FBoxSpace

Attributes: virtual

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 62, column 11)

Implementation: Schola/Source/Schola/Private/Actuators/RotationActuator.cpp (lines 6-48)

ConvertActionToFRotator

FRotator ConvertActionToFRotator(const FBoxPoint &Action)

Convert a Box Point with 3 values to an FRotator.

Returns: FRotator equivalent to the converted BoxPoin

Parameters:

  • Action (const FBoxPoint &) – [in] BoxPoint that will be converted

Returns: FRotator

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 69, column 10)

Implementation: Schola/Source/Schola/Private/Actuators/RotationActuator.cpp (lines 50-85)

TakeAction

virtual void TakeAction(const FBoxPoint &Action) override

Use this actuator to take an action impacting the world.

Note: This function must be implemented in the derived class.

Parameters:

  • Action (const FBoxPoint &) – [in] BoxPoint containing the inputs to this actuator

Attributes: virtual

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 71, column 6)

Implementation: Schola/Source/Schola/Private/Actuators/RotationActuator.cpp (lines 87-102)

GenerateId

virtual FString GenerateId() const override const

Returns: FString

Attributes: const, virtual

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 73, column 9)

Implementation: Schola/Source/Schola/Private/Actuators/RotationActuator.cpp (lines 104-127)

Public Members:

FBoxSpaceDimension PitchBounds

FBoxSpaceDimension PitchBounds = = FBoxSpaceDimension(-180, 180)

The Min/Max value for the Pitch of the tracked rotation.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 23, column 20)

FBoxSpaceDimension RollBounds

FBoxSpaceDimension RollBounds = = FBoxSpaceDimension(-180, 180)

The Min/Max value for the Roll of the tracked rotation.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 27, column 20)

FBoxSpaceDimension YawBounds

FBoxSpaceDimension YawBounds = = FBoxSpaceDimension(-180, 180)

The Min/Max value for the Yaw of the tracked rotation.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 31, column 20)

bool bHasPitch

bool bHasPitch = = true

Toggle for whether this actuator rotates the Agent along the Pitch dimension.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 35, column 6)

bool bHasRoll

bool bHasRoll = = true

Toggle for whether this actuator rotates the Agent along the Roll dimension.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 39, column 6)

bool bHasYaw

bool bHasYaw = = true

Toggle for whether this actuator rotates the Agent along the Yaw dimension.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 43, column 6)

ETeleportType TeleportType

ETeleportType TeleportType = = ETeleportType::None

Type of teleportation to use.

See SetActorLocation documentation for more details.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 47, column 15)

bool bSweep

bool bSweep

Toggle for whether to sweep while teleporting the actor.

See SetActorLocation documentation for more details

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 51, column 6)

bool bNormalizeAndRescale

bool bNormalizeAndRescale = = false

Toggle 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

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 55, column 6)

FOnRotationInputSignature OnRotationDelegate

FOnRotationInputSignature OnRotationDelegate

A delegate invoked when this actuator receives input from a brain.

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 59, column 27)

Source: Schola/Source/Schola/Public/Actuators/RotationActuator.h (line 15, column 1)