UProjectileMovementComponent::LimitVelocity

Don't allow velocity magnitude to exceed MaxSpeed, if MaxSpeed is non-zero.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/ProjectileMovementComponent.h"

Source

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

Syntax

FVector LimitVelocity
(
    FVector NewVelocity
) const

Remarks

Don't allow velocity magnitude to exceed MaxSpeed, if MaxSpeed is non-zero.