UProjectileMovementComponent::ComputeVelocity

Given an initial velocity and a time step, compute a new velocity.

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

virtual FVector ComputeVelocity
(
    FVector InitialVelocity,
    float DeltaTime
) const

Remarks

Given an initial velocity and a time step, compute a new velocity. Default implementation applies the result of ComputeAcceleration() to velocity.

Returns

Velocity after DeltaTime time step.

Parameters

Parameter

Description

InitialVelocity

Initial velocity.

DeltaTime

Time step of the update.