UCharacterMovementComponent::ApplyImpactPhysicsForces

Apply physics forces to the impacted component, if bEnablePhysicsInteraction is true.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual void ApplyImpactPhysicsForces
(
    const FHitResult & Impact,
    const FVector & ImpactAcceleration,
    const FVector & ImpactVelocity
)

Remarks

Apply physics forces to the impacted component, if bEnablePhysicsInteraction is true.

Parameters

Parameter

Description

Impact

HitResult that resulted in the impact

ImpactAcceleration

Acceleration of the character at the time of impact

ImpactVelocity

Velocity of the character at the time of impact