Open 3D Engine AzFramework 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.
|
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. More... | |
SimulatedBody * | m_body1 = nullptr |
Physics::Shape * | m_shape1 = nullptr |
The first body. More... | |
SimulatedBodyHandle | m_bodyHandle2 = AzPhysics::InvalidSimulatedBodyHandle |
Handle to the second body. | |
SimulatedBody * | m_body2 = nullptr |
Physics::Shape * | m_shape2 = nullptr |
The second body. More... | |
AZStd::vector< Contact > | m_contacts |
The contacts between the two shapes. | |
A collision event raised when two objects, neither of which can be triggers, overlap.
SimulatedBodyHandle AzPhysics::CollisionEvent::m_bodyHandle1 = AzPhysics::InvalidSimulatedBodyHandle |
The Type of collision event.
Handle to the first body
Physics::Shape* AzPhysics::CollisionEvent::m_shape1 = nullptr |
The first body.
The shape on the first body
Physics::Shape* AzPhysics::CollisionEvent::m_shape2 = nullptr |
The second body.
The shape on the second body