SupportPoint Class
Holds a point on the edge of a Minkowski difference along with that point's witnesses and the direction used to find the point
Constructor
SupportPoint
-
witness_a -
witness_b -
point
Parameters:
-
witness_aVec3Point in first object used to find the supporting point
-
witness_bVec3Point in the second object ued to find th supporting point
-
pointVec3The support point on the edge of the Minkowski difference
Item Index
Methods
Methods
classifyVertex
-
vertex
Determines if a vertex is in front of or behind the face
Parameters:
-
vertexVec3Vertex to classify
Returns:
EPA
-
simplex
Performs the Expanding Polytope Algorithm a GJK simplex
Parameters:
-
simplexGoblin.GjkEpa2.SimplexSimplex generated by the GJK algorithm
Returns:
findSupportPoint
-
object_a -
object_b -
direction -
gjk_point
Finds the extant point on the edge of the Minkowski difference for object_a - object_b in direction
Parameters:
-
object_aGoblin.RigidBodyFirst object in the search
-
object_bGoblin.RigidBodySecond object in the search
-
directionVec3Direction to find the extant point in
-
gjk_pointGoblin.GjkEpa.SupportPointSupportPointclass to store the resulting point & witnesses in
GJK
-
object_a -
object_b
Perform GJK algorithm against two objects. Returns a ContactDetails object if there is a collision, else null
Parameters:
-
object_aGoblin.RigidBody -
object_bGoblin.RigidBody
Returns:
null if no collision, else a ContactDetails object
