Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Projects one vector (V) onto another (Target) and returns the projected vector. If Target is nearly zero in length, returns the zero vector.
| Name | ProjectVectorOnToVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
UFUNCTION (BlueprintPure, Meta=(ScriptMethod="ProjectOnTo", Keywords="Project"),
Category="Math|Vector")
static UE_FVector ProjectVectorOnToVector
(
FVector V,
FVector Target
)
V projected on to Target.
Parameters
| Name | Remarks |
|---|---|
| V | Vector to project. |
| Target | Vector on which we are projecting. |