shapes-0.1.0.0: physics engine and other tools for 2D shapes

Safe HaskellNone
LanguageHaskell2010

Physics.Contact.HullVsHull

Description

Finding and describing the contact between two colliding objects. Also, a type for configuring contact constraint solver behavior.

Synopsis

Documentation

contactDepth Source #

Arguments

:: Neighborhood

Penetrated edge

-> Neighborhood

Penetrating feature

-> Double

Penetration depth

contactDepth_ Source #

Arguments

:: Neighborhood

Penetrated edge

-> P2

Penetrating feature

-> Double

Penetration depth

unwrapContactResult Source #

Arguments

:: Maybe (Flipping (Either Neighborhood Contact))

May contain either a separating axis or a Contact

-> Maybe (Flipping Contact) 

Extract the Contact if it exists.

flattenContactResult Source #

Arguments

:: Maybe (Flipping Contact) 
-> Descending ((Int, Int), Flipping Contact')

in decreasing key order, where x is MSV and y is LSV in (x, y)

Flatten a Contact into Contact's.

generateContacts Source #

Arguments

:: (ConvexHull, ConvexHull) 
-> Descending ((Int, Int), Flipping Contact')

in decreasing key order, where x is MSV and y is LSV in (x, y) x is the first hull's feature, y is the second hull's feature