FEditorCameraController::UpdateSimulation

Updates the position and orientation of the camera as well as other state (like velocity.) Should be called every frame.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/CameraController.h

Include

#include "CameraController.h"

Source

/Engine/Source/Editor/UnrealEd/Private/CameraController.cpp

Syntax

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss