UProjectileMovementComponent::ComputeVelocity

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.

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h

Source

Runtime/Engine/Private/Components/ProjectileMovementComponent.cpp