-
- All Known Subinterfaces:
SolvedContact
public interface Contact
Represents a contact of aContactConstraint
.- Since:
- 4.0.0
- Version:
- 5.0.1
- 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.boolean
isIgnored()
Returns true if this contact will be ignored during contact solving.
-
-
-
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
-
isIgnored
boolean isIgnored()
Returns true if this contact will be ignored during contact solving.A contact is ignored when it's part of a sensor
ContactConstraint
or if theContactConstraint
has been manually disabled. One last situation is when the contact is part of aContactConstraint
that has linearly dependent contacts - one of them will be solved and the other will be ignored.- Returns:
- boolean
- Since:
- 5.0.1
-
-