Navigation
API > API/Plugins > API/Plugins/Mover
Apply Velocity: provides an impulse velocity to the actor after (optionally) forcing them into a particular movement mode Note: this only applies the impulse for one tick!
| Name | FApplyVelocityEffect |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
| Include Path | #include "DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h" |
Syntax
USTRUCT (BlueprintType , Category="Mover|Instant Movement Effect",
DisplayName="Apply Velocity Instant Movement Effect")
struct FApplyVelocityEffect : public FInstantMovementEffect
Inheritance Hierarchy
- FInstantMovementEffect → FApplyVelocityEffect
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FApplyVelocityEffect() |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FApplyVelocityEffect() |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAdditiveVelocity | bool | If true VelocityToApply will be added to current velocity on this actor. If false velocity will be set directly to VelocityToApply. | DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
|
| ForceMovementMode | FName | Optional movement mode name to force the actor into before applying the impulse velocity. | DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
|
| VelocityToApply | FVector | Velocity to apply to the actor. | DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |
|
Functions
Public
Overridden from FInstantMovementEffect
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h | ||
virtual bool ApplyMovementEffect
(
FApplyMovementEffectParams& ApplyEffectParams, |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h | ||
virtual FInstantMovementEffect * Clone() |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h | ||
virtual UScriptStruct * GetScriptStruct() |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h | ||
virtual void NetSerialize
(
FArchive& Ar |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h | ||
virtual FString ToSimpleString() |
DefaultMovementSet/InstantMovementEffects/BasicInstantMovementEffects.h |