Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/UProjectileMovementComponent
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 |
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. Velocity after DeltaTime time step.
Parameters
| Name | Description |
|---|---|
| InitialVelocity | Initial velocity. |
| DeltaTime | Time step of the update. |