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::CollisionEvent Struct Reference

A collision event raised when two objects, neither of which can be triggers, overlap. More...

#include <CollisionEvents.h>

Public Types

enum class  Type : AZ::u8 { Begin , Persist , End }
 

Public Member Functions

 AZ_TYPE_INFO (CollisionEvent, "{7602AA36-792C-4BDC-BDF8-AA16792151A3}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

 AZ_CLASS_ALLOCATOR_DECL
 
Type m_type
 
SimulatedBodyHandle m_bodyHandle1 = AzPhysics::InvalidSimulatedBodyHandle
 The Type of collision event.
 
SimulatedBodym_body1 = nullptr
 
Physics::Shapem_shape1 = nullptr
 The first body.
 
SimulatedBodyHandle m_bodyHandle2 = AzPhysics::InvalidSimulatedBodyHandle
 Handle to the second body.
 
SimulatedBodym_body2 = nullptr
 
Physics::Shapem_shape2 = nullptr
 The second body.
 
AZStd::vector< Contactm_contacts
 The contacts between the two shapes.
 

Detailed Description

A collision event raised when two objects, neither of which can be triggers, overlap.

Member Data Documentation

◆ m_bodyHandle1

SimulatedBodyHandle AzPhysics::CollisionEvent::m_bodyHandle1 = AzPhysics::InvalidSimulatedBodyHandle

The Type of collision event.

Handle to the first body

◆ m_shape1

Physics::Shape* AzPhysics::CollisionEvent::m_shape1 = nullptr

The first body.

The shape on the first body

◆ m_shape2

Physics::Shape* AzPhysics::CollisionEvent::m_shape2 = nullptr

The second body.

The shape on the second body


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