UMovementInputActuator
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.
class UMovementInputActuator : public UActorComponent, public IScholaActuatorMethods
Public
GetActionSpace_Implementation
virtual voidGetActionSpace_Implementation(FInstancedStruct &OutActionSpace) const overrideGet the action space for this actuator.
Parameters
OutActionSpace(FInstancedStruct)
TakeAction_Implementation
virtual voidTakeAction_Implementation(const FInstancedStruct &InAction) overrideApply an action to this actuator.
Parameters
InAction(const FInstancedStruct)
TakeAction
void TakeAction(const FBoxPoint &Action)Typed convenience method for taking action with a BoxPoint directly.
Parameters
Action(const FBoxPoint)
GenerateId
FString GenerateId() constGenerate a unique ID string for this actuator.
Protected
ConvertActionToFVector
FVector ConvertActionToFVector(const FBoxPoint &Action, APawn *&OutOwnerPawn) constConvert a Box Point to an FVector for movement input.
Parameters
-
Action(const FBoxPoint) -
OutOwnerPawn(APawn)
Attributes
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.
MaxSpeed
float MaxSpeed = 1.0fThe maximum speed at which the agent can move.
ScaleValue
float ScaleValue = 1.0fScale to apply to input.
bForce
bool bForce = falseForce the Pawn to move.
OnMovementDelegate
FOnMovementInputSignature OnMovementDelegateA delegate invoked when this actuator receives input from a brain.
Source: Source/ScholaInteractors/Public/Actuators/MovementInputActuator.h