ConvexConvexPairSolver
Package: Libraries.Game.Collision.Narrowphase · Inherits from: Libraries.Language.Object
This class contains actions that will help you solve for the closest points between two objects and the distance between these closest points.
Actions
GetClosestPoints(Libraries.Game.Collision.PhysicsPosition3D transformA, Libraries.Game.Collision.PhysicsPosition3D transformB, number maximumDistanceSquared, Libraries.Game.Collision.CollisionPointsResult3D result, boolean swapResults)
This action finds the closest points on object A to B and on object B to A.
Parameters
transformALibraries.Game.Collision.PhysicsPosition3DtransformBLibraries.Game.Collision.PhysicsPosition3DmaximumDistanceSquarednumberresultLibraries.Game.Collision.CollisionPointsResult3DswapResultsboolean
Initialize(Libraries.Game.Collision.Shapes.CollisionShape3D objectA, Libraries.Game.Collision.Shapes.CollisionShape3D objectB, Libraries.Game.Collision.Narrowphase.ConvexConvexSimplexSolver simplexSolver, Libraries.Game.Collision.Narrowphase.ConvexConvexPenetrationDepthSolver penetrationDepthSolver)
This action stores the shapes of object A and B that might be colliding and different solvers that are used to solve this collision.
Parameters
SetCachedSeparatingAxis(Libraries.Compute.Vector3 separatingAxis)
This action stores a vector that could tell you whether the two objects are colliding or not.
Parameters
separatingAxisLibraries.Compute.Vector3
SetIgnoreMargin(boolean ignoreMargin)
This action sets whether if you want to have an invisible shell around the objects that might collide or not. Having an invisible shell can make computations faster and more accurate.
Parameters
ignoreMarginboolean
SetMinkowskiA(Libraries.Game.Collision.Shapes.CollisionShape3D minkowskiA)
This action stores the shape of the first object that might be involved in the collision.
Parameters
SetMinkowskiB(Libraries.Game.Collision.Shapes.CollisionShape3D minkowskiB)
This action stores the shape of the second object that might be involved in the collision.
Parameters
SetPenetrationDepthSolver(Libraries.Game.Collision.Narrowphase.ConvexConvexPenetrationDepthSolver penetrationDepthSolver)
This action connects this ConvexConvexPairSolver to a ConvexConvexPenetrationDepthSolver for the actions inside ConvexConvexPenetrationDepthSolver to help with this ConvexConvexPairSolver.
Parameters
penetrationDepthSolverLibraries.Game.Collision.Narrowphase.ConvexConvexPenetrationDepthSolver