Class UMovementInputActuator
Class UMovementInputActuator
- Defined in File MovementInputActuator.h
Inheritance Relationships
Base Types
-
public UActorComponent -
public IScholaActuator(Class IScholaActuator)
class UMovementInputActuator : public UActorComponent, public IScholaActuatorSource: Source/Schola/Interactors/Public/Actuators/MovementInputActuator.h
Dependencies: FBoxPoint
Movement input actuator that applies continuous movement to a Pawn.
Uses AddMovementInput to apply movement along enabled axes (X, Y, Z). Accepts a BoxPoint action where each dimension corresponds to forward/right/up movement speed.
Public Functions
| Symbol | Details |
|---|---|
GetActionSpace_Implementation | Get the action space for this actuator. |
TakeAction_Implementation | Apply an action to this actuator. |
TakeAction | Typed convenience method for taking action with a BoxPoint directly. |
GenerateId | Generate a unique ID string for this actuator. |
GetActionSpace_Implementation
virtual voidGetActionSpace_Implementation(FInstancedStruct &OutActionSpace) const overrideGet the action space for this actuator.
Returns a BoxSpace with dimensions for each enabled axis (X, Y, Z). Each dimension is bounded by [MinSpeed, MaxSpeed].
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/MovementInputActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/MovementInputActuator.cpp
TakeAction_Implementation
virtual voidTakeAction_Implementation(const FInstancedStruct &InAction) overrideApply an action to this actuator.
Accepts either a BoxPoint directly or extracts it from a DictPoint. The action values are interpreted as movement speeds along enabled axes.
Parameters
InAction – [in] The action to apply (BoxPoint or DictPoint)
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InAction | const FInstancedStruct & | The action to apply (BoxPoint or DictPoint) |
Attributes: virtual
Source: Source/Schola/Interactors/Public/Actuators/MovementInputActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/MovementInputActuator.cpp
TakeAction
void TakeAction(const FBoxPoint &Action)Typed convenience method for taking action with a BoxPoint directly.
Parameters
Action – [in] The box point containing movement values for enabled dimensions
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FBoxPoint & | The box point containing movement values for enabled dimensions |
Source: Source/Schola/Interactors/Public/Actuators/MovementInputActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/MovementInputActuator.cpp
GenerateId
FString GenerateId() constGenerate a unique ID string for this actuator.
Returns:
FString describing the actuator configuration (e.g., “MovementInput_X_true_Y_true_Z_false_Min_-1.00_Max_1.00”)
Attributes: const
Source: Source/Schola/Interactors/Public/Actuators/MovementInputActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/MovementInputActuator.cpp
Public Members
| Symbol | Details |
|---|---|
bHasXDimension | Toggle for whether this actuator moves the Agent along the X dimension (forward/backward) |
bHasYDimension | Toggle for whether this actuator moves the Agent along the Y dimension (left/right) |
bHasZDimension | Toggle for whether this actuator moves the Agent along the Z dimension (up/down) |
MinSpeed | The minimum speed at which the agent can move. |
MaxSpeed | The maximum speed at which the agent can move. |
ScaleValue | Scale to apply to input. |
bForce | Force the Pawn to move. |
OnMovementDelegate | A delegate invoked when this actuator receives input from a brain. |
bHasXDimension
bool bHasXDimension = trueToggle for whether this actuator moves the Agent along the X dimension (forward/backward)
bHasYDimension
bool bHasYDimension = trueToggle for whether this actuator moves the Agent along the Y dimension (left/right)
bHasZDimension
bool bHasZDimension = trueToggle for whether this actuator moves the Agent along the Z dimension (up/down)
MinSpeed
float MinSpeed = 0.0fThe minimum speed at which the agent can move.
Set to negative to allow for backwards movement along each axis.
MaxSpeed
float MaxSpeed = 1.0fThe maximum speed at which the agent can move.
Defines the upper bound of the action space.
ScaleValue
float ScaleValue = 1.0fScale to apply to input.
See AddMovementInput for more details.
bForce
bool bForce = falseForce the Pawn to move.
See AddMovementInput for more details.
OnMovementDelegate
FOnMovementInputSignature OnMovementDelegateA delegate invoked when this actuator receives input from a brain.
Useful for debugging and logging.
Protected Functions
| Symbol | Details |
|---|---|
ConvertActionToFVector | Convert a Box Point to an FVector for movement input. |
ConvertActionToFVector
FVector ConvertActionToFVector(const FBoxPoint &Action) constConvert a Box Point to an FVector for movement input.
Extracts values from the BoxPoint based on enabled dimensions and maps them to X, Y, Z components.
Parameters
Action – [in] BoxPoint that will be converted
Returns:
FVector containing the converted movement values
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Action | const FBoxPoint & | BoxPoint that will be converted |
Attributes: const
Source: Source/Schola/Interactors/Public/Actuators/MovementInputActuator.h
Implementation: Source/Schola/Interactors/Private/Actuators/MovementInputActuator.cpp