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