Safe Haskell | None |
---|---|
Language | Haskell2010 |
Finding and describing the contact between two colliding objects. Also, a type for configuring contact constraint solver behavior.
- contactDepth :: Neighborhood -> Neighborhood -> Double
- contactDepth_ :: Neighborhood -> P2 -> Double
- defaultContactBehavior :: ContactBehavior
- unwrapContactResult :: Maybe (Flipping (Either Neighborhood Contact)) -> Maybe (Flipping Contact)
- flattenContactResult :: Maybe (Flipping Contact) -> Descending ((Int, Int), Flipping Contact')
- generateContacts' :: (ConvexHull, ConvexHull) -> Maybe (Flipping Contact)
- generateContacts :: (ConvexHull, ConvexHull) -> Descending ((Int, Int), Flipping Contact')
Documentation
:: Neighborhood | Penetrated edge |
-> Neighborhood | Penetrating feature |
-> Double | Penetration depth |
:: Neighborhood | Penetrated edge |
-> P2 | Penetrating feature |
-> Double | Penetration depth |
:: Maybe (Flipping (Either Neighborhood Contact)) | May contain either a separating axis or a |
-> Maybe (Flipping Contact) |
Extract the Contact
if it exists.
generateContacts' :: (ConvexHull, ConvexHull) -> Maybe (Flipping Contact) Source #
:: (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 |