Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMinimalViewInfo
Description
Transforms a world space location into "first person space". This function mirrors the morphing that is applied to first person primitives when they are rendered on the GPU, so it can be used for spawning objects (e.g. projectiles or ejected shell casings) relative to the morphed first person geometry on screen. Setting bIgnoreFirstPersonScale to true only applies the field of view morphing and is useful for cases where a full size projectile is spawned in front of the first person weapon. By ignoring the first person scale for the spawn location, the spawned full-size projectile will be spawned a bit further away from the camera, but its on-screen size will look correct.
| Name | TransformWorldToFirstPerson |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Camera/CameraTypes.h |
| Include Path | #include "Camera/CameraTypes.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Camera/CameraStackTypes.cpp |
FVector TransformWorldToFirstPerson
(
const FVector & WorldPosition,
bool bIgnoreFirstPersonScale
) const