ContactData

constructor(shapeA: Shape, shapeB: Shape, normal: Vec2, points: List<Vec2>, normalImpulses: List<Float>)

Parameters

shapeA

The first shape in the contact

shapeB

The second shape in the contact

normal

The contact normal in world coordinates, pointing from shapeA to shapeB

points

The contact points (up to 2 for a manifold)

normalImpulses

The normal impulses applied at each contact point