-
- All Known Subinterfaces:
SolvedContact
public interface Contact
Represents a contact of aContactConstraint
.- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getDepth()
Returns the penetration depth of this point.ManifoldPointId
getId()
Returns theManifoldPointId
for this contact.Vector2
getPoint()
Returns the world space collision point.
-
-
-
Method Detail
-
getId
ManifoldPointId getId()
Returns theManifoldPointId
for this contact.This identifies the contact to warm-starting.
- Returns:
ManifoldPointId
- Since:
- 3.1.2
-
getPoint
Vector2 getPoint()
Returns the world space collision point.- Returns:
Vector2
the collision point in world space
-
getDepth
double getDepth()
Returns the penetration depth of this point.- Returns:
- double the penetration depth
-
-