ContactData

data class ContactData(val shapeA: Shape, val shapeB: Shape, val normal: Vec2, val points: List<Vec2>, val normalImpulses: List<Float>)

Contact data for a shape or body.

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard