Navigation
API > API/Editor > API/Editor/UnrealEd
An interactive camera movement system. Supports simple physics-based animation.
| Name | FEditorCameraController |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/CameraController.h |
| Include Path | #include "CameraController.h" |
Syntax
class FEditorCameraController
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEditorCameraController() |
Constructor | CameraController.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FEditorCameraController() |
CameraController.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Config | FCameraControllerConfig | Configuration | CameraController.h | |
| FOVVelocity | float | FOV velocity in degrees per second | CameraController.h | |
| MovementVelocity | FVector | World space movement velocity | CameraController.h | |
| OriginalFOVForRecoil | float | Cached FOV angle, for recoiling back to the original FOV | CameraController.h | |
| RotationVelocityEuler | FVector | Rotation velocity euler (yaw, pitch and roll) in degrees per second | CameraController.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCameraControllerConfig & AccessConfig() |
Access the configuration for this camera. Making changes is allowed. | CameraController.h | |
FCameraControllerConfig & GetConfig() |
Returns the configuration of this camera controller | CameraController.h | |
bool IsRotating() |
True if this camera currently has rotational velocity | CameraController.h | |
void ResetVelocity() |
Reset the different camera velocity. | CameraController.h | |
void SetConfig
(
const FCameraControllerConfig& InConfig |
Sets the configuration for this camera controller | CameraController.h | |
virtual void UpdateSimulation
(
const FCameraControllerUserImpulseData& UserImpulseData, |
Updates the position and orientation of the camera as well as other state (like velocity.) Should be called every frame. | CameraController.h |