Class containing data describing a Collision between two Shapes.

Static methods

staticinlineget(overlap:Float, x:Float, y:Float):CollisionData

Variables

@:value(0)contact_count:Int = 0

@:value(Vector.fromArrayCopy([Vector2.zero, Vector2.zero]))finalcontacts:Vector<Vector2> = Vector.fromArrayCopy([Vector2.zero, Vector2.zero])

@:value(Vector2.zero)finalnormal:Vector2 = Vector2.zero

The normal vector (direction) of Shape A's penetration into Shape B.

@:value(0.)overlap:Float = 0.

The length of Shape A's penetration into Shape B.

@:value(false)read onlypooled:Bool = false

sa:Null<Shape>

Shape A.

sb:Null<Shape>

Shape B.

Methods

inlineset(overlap:Float, x:Float, y:Float):Void