CollisionEvents

Provides events triggered when collisions occur between entities.

Note: The collision detection system operates with a precision of 0.001 meters (1 millimeter). When the distance between the surfaces of two colliders is less than this threshold, the colliders are considered to be in contact.

For more information on subscribing to scene events, refer to com.pico.spatial.core.ecs.Scene.subscribe or com.pico.spatial.core.container.SpatialViewContent.subscribe.

Types

Link copied to clipboard
class Enter : Event

This event is triggered when two entities collide.

Link copied to clipboard
class Exit : Event

This event is triggered when two objects that are in contact separate.

Link copied to clipboard
class Update : Event

This event is triggered on every frame when two entities are in contact.

Properties

Link copied to clipboard
@JvmField
var collisionEventInfo: String

The string representation of the current collision event information.