Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Transforms a first person space location back into world space. This function is the inverse of TransformWorldToFirstPerson.
| Name | TransformFirstPersonToWorld |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintPure, Category="Camera")
static FVector TransformFirstPersonToWorld
(
const FMinimalViewInfo & ViewInfo,
const FVector & FirstPersonPosition,
bool bScaleWasIgnoredOnInput
)
Parameters
| Name | Remarks |
|---|---|
| ViewInfo | FMinimalViewInfo struct holding the first person camera parameters. |
| FirstPersonPosition | First person space position to transform. |
| bScaleWasIgnoredOnInput | Should be set to true if FirstPersonPosition was computed with TransformWorldToFirstPerson and the bIgnoreFirstPersonScale parameter set to true. |