Protocol

HasCollision

An interface used for ray casting and collision detection.

Declaration

protocol HasCollision

Topics

Getting the Component

var collision: CollisionComponent?

The collision component for an entity.

struct CollisionComponent

A component that gives an entity the ability to collide with other entities that also have collision components.

Relationships

Inherits From

Inherited By

Conforming Types

See Also

Detecting Collisions

var collision: CollisionComponent?

The collision component for the model entity.

struct CollisionComponent

A component that gives an entity the ability to collide with other entities that also have collision components.

enum CollisionEvents

Events associated with collisions.