| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Physics.Contact.HullVsHull
Description
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
Arguments
| :: Neighborhood | Penetrated edge |
| -> Neighborhood | Penetrating feature |
| -> Double | Penetration depth |
Arguments
| :: Neighborhood | Penetrated edge |
| -> P2 | Penetrating feature |
| -> Double | Penetration depth |
Arguments
| :: 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 #
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 |