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

#include <SlideAlongAxisBasedOnAngle.h>

Inherits ICameraLookAtBehavior.

Public Member Functions

 AZ_RTTI (SlideAlongAxisBasedOnAngle, "{8DDA8D0B-5BC3-437E-894B-5144E6E81236}", ICameraLookAtBehavior)
 
 AZ_CLASS_ALLOCATOR (SlideAlongAxisBasedOnAngle, AZ::SystemAllocator)
 
void AdjustLookAtTarget (float deltaTime, const AZ::Transform &targetTransform, AZ::Transform &outLookAtTargetTransform) override
 
void Activate (AZ::EntityId) override
 
void Deactivate () override
 
bool XAndYIgnored () const
 
bool XAndZIgnored () const
 
bool YAndZIgnored () const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *reflection)
 

Detailed Description

This will slide the look at target along a desired axis based on a particular Euler angle. As an example setting this up with ForwardBackward and Pitch, the more the target pitches the further forward it will slide. This will have the behavior that when looking down you will be looking down ahead of the target instead of directly at the top. A similar result will occur when looking up. This could also be used for peeking around corners. This is primarily useful for third person cameras.


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