Libraries.Game.Collision.Narrowphase.ConvexConvexDistanceSolver Documentation

This class solves for the distance between the two colliding objects.

Inherits from: Libraries.Language.Object

Summary

Actions Summary Table

ActionsDescription
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns a CompareResult.
EncloseOrigin()This action returns whether the simplex that you built contains the origin or not.
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
Failed()This action returns whether the distance solver has failed or not.
FetchSupport()This action finds a support point in an arbituarily given direction.
GetHashCode()This action gets the hash code for an object.
GetIterations()This action returns how many iterations the distance solver has gone through.
GetOrder()This action returns what type of simplex you are using currently.
GetSimplex()This action returns the simplex that you are using currently using an array of vertices.
Hash(Libraries.Compute.Vector3 vector)This action returns a number that is an index to an array that contains randome vectors.
Initialize(Libraries.Compute.Matrix3 wrot0, Libraries.Compute.Vector3 pos0, Libraries.Game.Collision.Shapes.CollisionShape3D shape0, Libraries.Compute.Matrix3 wrot1, Libraries.Compute.Vector3 pos1, Libraries.Game.Collision.Shapes.CollisionShape3D shape1, number pmargin)This action initializes the variables in this ConvexConvexDistanceSolver with variables that you passed in.
LocalSupport(Libraries.Compute.Vector3 d, integer i)
SearchOrigin()This action returns whether the two objects has collided or not.
SearchOrigin(Libraries.Compute.Vector3 initray)This action returns whether the two objects has collided or not.
SetOrder(integer order)This action sets what type of simplex you are using currently.
SolveSimplex2(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab)
SolveSimplex3(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac)
SolveSimplex3a(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac, Libraries.Compute.Vector3 cabc)
SolveSimplex4(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac, Libraries.Compute.Vector3 ad)
Support(Libraries.Compute.Vector3 d, Libraries.Game.Collision.Narrowphase.ConvexConvexVertex v)This action finds and saves an vertex that could potentially be a part of a tetrahedron that will enclose the origin.

Actions Documentation

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns a CompareResult. The compare result is either larger if this hash code is larger than the object passed as a parameter, smaller, or equal.

Example Code

use Libraries.Language.Support.CompareResult
        Object o
        Object t
        CompareResult result = o:Compare(t)

Parameters

Return

Libraries.Language.Support.CompareResult: The Compare result, Smaller, Equal, or Larger.

EncloseOrigin()

This action returns whether the simplex that you built contains the origin or not.

Return

boolean:

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(t)

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

Failed()

This action returns whether the distance solver has failed or not.

Return

boolean:

FetchSupport()

This action finds a support point in an arbituarily given direction.

Return

boolean:

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode()

Return

integer: The integer hash code of the object.

GetIterations()

This action returns how many iterations the distance solver has gone through.

Return

integer:

GetOrder()

This action returns what type of simplex you are using currently.

Return

integer:

GetSimplex()

This action returns the simplex that you are using currently using an array of vertices.

Return

Libraries.Containers.Array:

Hash(Libraries.Compute.Vector3 vector)

This action returns a number that is an index to an array that contains randome vectors.

Parameters

Return

integer:

Initialize(Libraries.Compute.Matrix3 wrot0, Libraries.Compute.Vector3 pos0, Libraries.Game.Collision.Shapes.CollisionShape3D shape0, Libraries.Compute.Matrix3 wrot1, Libraries.Compute.Vector3 pos1, Libraries.Game.Collision.Shapes.CollisionShape3D shape1, number pmargin)

This action initializes the variables in this ConvexConvexDistanceSolver with variables that you passed in.

Parameters

LocalSupport(Libraries.Compute.Vector3 d, integer i)

Parameters

Return

Libraries.Compute.Vector3

SearchOrigin()

This action returns whether the two objects has collided or not.

Return

boolean:

SearchOrigin(Libraries.Compute.Vector3 initray)

This action returns whether the two objects has collided or not.

Parameters

Return

boolean:

SetOrder(integer order)

This action sets what type of simplex you are using currently.

Parameters

SolveSimplex2(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab)

Parameters

Return

boolean

SolveSimplex3(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac)

Parameters

Return

boolean

SolveSimplex3a(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac, Libraries.Compute.Vector3 cabc)

Parameters

Return

boolean

SolveSimplex4(Libraries.Compute.Vector3 ao, Libraries.Compute.Vector3 ab, Libraries.Compute.Vector3 ac, Libraries.Compute.Vector3 ad)

Parameters

Return

boolean

Support(Libraries.Compute.Vector3 d, Libraries.Game.Collision.Narrowphase.ConvexConvexVertex v)

This action finds and saves an vertex that could potentially be a part of a tetrahedron that will enclose the origin.

Parameters