#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) |
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.