Open 3D Engine AzFramework 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.
AzPhysics::TriggerEvent Struct Reference

Trigger event raised when an object enters/exits a trigger shape. More...

#include <CollisionEvents.h>

Public Types

enum class  Type : AZ::u8 { Enter , Exit }
 

Public Member Functions

 AZ_TYPE_INFO (TriggerEvent, "{7A0851A3-2CBD-4A03-85D5-1C40221E7F61}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

 AZ_CLASS_ALLOCATOR_DECL
 
Type m_type
 
SimulatedBodyHandle m_triggerBodyHandle = AzPhysics::InvalidSimulatedBodyHandle
 The type of trigger event.
 
SimulatedBodym_triggerBody = nullptr
 The trigger body.
 
Physics::Shapem_triggerShape = nullptr
 The trigger shape.
 
SimulatedBodyHandle m_otherBodyHandle = AzPhysics::InvalidSimulatedBodyHandle
 Handle to the body that entered the trigger.
 
SimulatedBodym_otherBody = nullptr
 The other body that entered the trigger.
 
Physics::Shapem_otherShape = nullptr
 The other shape that entered the trigger.
 

Detailed Description

Trigger event raised when an object enters/exits a trigger shape.

Member Data Documentation

◆ m_triggerBodyHandle

SimulatedBodyHandle AzPhysics::TriggerEvent::m_triggerBodyHandle = AzPhysics::InvalidSimulatedBodyHandle

The type of trigger event.

Handle to the trigger body


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