Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FEditorCameraController
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/CameraController.h |
| Include | #include "CameraController.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/CameraController.cpp |
virtual void UpdateSimulation
(
const FCameraControllerUserImpulseData & UserImpulseData,
const float DeltaTime,
const bool bAllowRecoilIfNoImpulse,
const float MovementSpeedScale,
FVector & InOutCameraPosition,
FVector & InOutCameraEuler,
float & InOutCameraFOV
)
Remarks
Updates the position and orientation of the camera as well as other state (like velocity.) Should be called every frame.
Parameters
| Name | Description |
|---|---|
| UserImpulseData | Input data from the user this frame |
| DeltaTime | Time interval since last update |
| bAllowRecoilIfNoImpulse | True if we should recoil FOV if needed |
| MovementSpeedScale | Scales the speed of movement |
| InOutCameraPosition | [in, out] Camera position |
| InOutCameraEuler | [in, out] Camera orientation |
| InOutCameraFOV | [in, out] Camera field of view |