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

#include <Behavior.h>

Inherits AZ::TickBus::Handler.

Inherited by OpenParticleSystemEditor::DollyCameraBehavior, OpenParticleSystemEditor::IdleBehavior, OpenParticleSystemEditor::MoveCameraBehavior, OpenParticleSystemEditor::OrbitCameraBehavior, and OpenParticleSystemEditor::PanCameraBehavior.

Public Member Functions

virtual void Start ()
 
virtual void End ()
 
virtual void MoveX (float value)
 
virtual void MoveY (float value)
 
virtual void MoveZ (float value)
 

Protected Member Functions

bool HasDelta () const
 
virtual float GetSensitivityX ()
 
virtual float GetSensitivityY ()
 
virtual float GetSensitivityZ ()
 

Static Protected Member Functions

static AZ::Quaternion LookRotation (AZ::Vector3 forward)
 Calculate rotation quaternion towards a forward vector along world up axis.
 
static float TakeStep (float &value, float t)
 Lerp a float value to 0 then decrement it by that interval and return it.
 

Protected Attributes

float m_x = 0
 delta x movement accumulated during current frame
 
float m_y = 0
 delta y movement accumulated during current frame
 
float m_z = 0
 delta scroll wheel accumulated during current frame
 
float m_radius = 1.0f
 Model radius.
 
AZ::EntityId m_cameraEntityId
 
AZ::Vector3 m_targetPosition = AZ::Vector3::CreateZero()
 
float m_distanceToTarget = 0
 

Static Protected Attributes

static constexpr float LerpTime = 0.05f
 Time in seconds to approximately complete a transformation.
 
static constexpr float SnapInterval = 0.01f
 If delta transform less than this, snap instantly.
 

Detailed Description

Performs a single type of action for OpenParticleEditorViewportInputController based on input See derived behaviors for specific details


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