Events associated with collisions.


enum CollisionEvents


Detecting Collisions

struct CollisionEvents.Began

An event raised when two objects collide.

struct CollisionEvents.Updated

An event raised on every frame when two objects are in contact.

struct CollisionEvents.Ended

An event raised when two objects, previously in contact, separate.

See Also

Getting and Sending Events

func publisher<E>(for: E.Type, on: EventSource?) -> Scene.Publisher<E>

Generates a publisher for events of the specified type.

struct Scene.Publisher

A publisher for the given event type in the scene.

enum SceneEvents

Events the scene triggers.

enum AnimationEvents

Events triggered by the RealityKit animation system.

enum AudioEvents

Events associated with audio playback.

protocol Event

A type that can be sent as an event.

protocol EventSource

A type on which events can be published and subscribed.