Open 3D Engine StartingPointCamera Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Camera::RotateCameraLookAt Class Reference

#include <RotateCameraLookAt.h>

Inherits ICameraLookAtBehavior, and AZ::GameplayNotificationBus::Handler.

Public Member Functions

 AZ_RTTI (RotateCameraLookAt, "{B72C5BE7-2DAF-412B-BBBB-F216B3DFB9A0}", ICameraLookAtBehavior)
 
 AZ_CLASS_ALLOCATOR (RotateCameraLookAt, AZ::SystemAllocator)
 
void AdjustLookAtTarget (float deltaTime, const AZ::Transform &targetTransform, AZ::Transform &outLookAtTargetTransform) override
 
void Activate (AZ::EntityId) override
 
void Deactivate () override
 
void OnEventBegin (const AZStd::any &) override
 
void OnEventUpdating (const AZStd::any &) override
 
void OnEventEnd (const AZStd::any &) override
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *reflection)
 

Detailed Description

This will rotate the camera LookAt transform. If you have a camera that is closely following a target, say in third person perspective you would not want the target to pitch while looking up and down. You may also desire the ability to swivel the camera around the target while the target remains stationary.


The documentation for this class was generated from the following file: