Open 3D Engine EMotionFX 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.
EMotionFX::EventInfo Class Reference

#include <EventInfo.h>

Public Types

enum  EventState { START , ACTIVE , END }
 

Public Member Functions

bool IsEventStart () const
 
 EventInfo (float timeValue=0.0f, ActorInstance *actorInstance=nullptr, const MotionInstance *motionInstance=nullptr, MotionEvent *event=nullptr, EventState eventState=START)
 

Public Attributes

float m_timeValue
 
ActorInstancem_actorInstance
 
const MotionInstancem_motionInstance
 
AnimGraphNodem_emitter
 
const MotionEventm_event
 
float m_globalWeight
 
float m_localWeight
 
EventState m_eventState
 

Detailed Description

Triggered event info. This class holds the information for each event that gets triggered.

Member Data Documentation

◆ m_actorInstance

ActorInstance* EMotionFX::EventInfo::m_actorInstance

The actor instance that triggered this event.

◆ m_emitter

AnimGraphNode* EMotionFX::EventInfo::m_emitter

The animgraph node which originally did emit this event. This parameter can be nullptr.

◆ m_event

const MotionEvent* EMotionFX::EventInfo::m_event

The event itself.

◆ m_eventState

EventState EMotionFX::EventInfo::m_eventState

Is this the start of a ranged event? Ticked events will always have this set to true.

◆ m_globalWeight

float EMotionFX::EventInfo::m_globalWeight

The global weight of the event.

◆ m_localWeight

float EMotionFX::EventInfo::m_localWeight

The local weight of the event.

◆ m_motionInstance

const MotionInstance* EMotionFX::EventInfo::m_motionInstance

The motion instance which triggered this event, can be nullptr.

◆ m_timeValue

float EMotionFX::EventInfo::m_timeValue

The time value of the event, in seconds.


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