Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UProjectileMovementComponent
Description
Given an initial velocity and a time step, compute a new velocity. Default implementation applies the result of ComputeAcceleration() to velocity.
| Name | ComputeVelocity |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h |
| Include Path | #include "GameFramework/ProjectileMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ProjectileMovementComponent.cpp |
virtual FVector ComputeVelocity
(
FVector InitialVelocity,
float DeltaTime
) const
Velocity after DeltaTime time step.
Parameters
| Name | Remarks |
|---|---|
| InitialVelocity | Initial velocity. |
| DeltaTime | Time step of the update. |