UProjectileMovementComponent::ComputeVelocity

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss