struct

Flock::Collision::Contact2D

Inherits Struct < Value < Object

A collision between two entities, emitted as an event each fixed step (see Flock::Collision::Contact2D registered via App#add_event). Read it in a gameplay system with world.each_event(Flock::Collision::Contact2D) or an EventReader. normal points from a toward b.

Constructors

new(a : Flock::Entity, b : Flock::Entity, normal : Flock::Vec2, penetration : Float32, point : Flock::Vec2)
Source

Instance methods

normal
Source
penetration
Source
point
Source