Table of Contents

Namespace Stride.CommunityToolkit.Box2D.Events

Classes

PhysicsEventRouter2D

Routes Box2D contact and sensor events to registered handlers. Delegates resolution of bodies to Stride entities via a provided callback so it remains agnostic of the mapping implementation.

Structs

ContactEventData

A contact event delivered to IContactEventHandler implementations: the two entities and shapes involved, plus impact data for Hit events.

SensorEventData

A sensor overlap event delivered to ISensorEventHandler implementations.

Interfaces

IContactEventHandler

Implemented by objects that want to receive contact and hit events from the simulation. Register with RegisterContactEventHandler(IContactEventHandler).

ISensorEventHandler

Implemented by objects that want to receive sensor overlap events from the simulation. Register with RegisterSensorEventHandler(ISensorEventHandler).

Enums

ContactEventType

The kind of contact event carried by a ContactEventData.

SensorEventType

The kind of sensor event carried by a SensorEventData.