Libraries.Game.Collision.Narrowphase.DistanceInput2D Documentation

This class records the vertices of two shapes in collision through the use of the class DistanceProxy2D and also records the tilt and position of two shapes through the use of the class PhysicsPosition2D.

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.
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GetHashCode()This action gets the hash code for an object.
GetProxyA()This action gets the DistanceProxy2D of the second shape in collision.
GetProxyB()This action gets the DistanceProxy2D of the second shape in collision.
GetTransformA()This action gets the tilt and position of the first shape in collision.
GetTransformB()This action gets the tilt and position of the second shape in collision.
GetUseRadii()This action returns whether this DistanceInput2D class should be using the radii for both shapes.
SetProxyA(Libraries.Game.Collision.Narrowphase.DistanceProxy2D proxy)This action sets the DistanceProxy2D of the first shape in collision.
SetProxyB(Libraries.Game.Collision.Narrowphase.DistanceProxy2D proxy)This action sets the DistanceProxy2D of the second shape in collision.
SetTransformA(Libraries.Game.Collision.PhysicsPosition2D transform)This action associates the tilt and position of the first shape in collision with this DistanceInput2D class.
SetTransformB(Libraries.Game.Collision.PhysicsPosition2D transform)This action associates the tilt and position of the second shape in collision with this DistanceInput2D class.
SetUseRadii(boolean flag)This action allows the DistanceInput2D class to use the radii for both shapes.

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.

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.

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.

GetProxyA()

This action gets the DistanceProxy2D of the second shape in collision.

Return

Libraries.Game.Collision.Narrowphase.DistanceProxy2D:

GetProxyB()

This action gets the DistanceProxy2D of the second shape in collision.

Return

Libraries.Game.Collision.Narrowphase.DistanceProxy2D:

GetTransformA()

This action gets the tilt and position of the first shape in collision.

Return

Libraries.Game.Collision.PhysicsPosition2D:

GetTransformB()

This action gets the tilt and position of the second shape in collision.

Return

Libraries.Game.Collision.PhysicsPosition2D:

GetUseRadii()

This action returns whether this DistanceInput2D class should be using the radii for both shapes.

Return

boolean:

SetProxyA(Libraries.Game.Collision.Narrowphase.DistanceProxy2D proxy)

This action sets the DistanceProxy2D of the first shape in collision.

Parameters

SetProxyB(Libraries.Game.Collision.Narrowphase.DistanceProxy2D proxy)

This action sets the DistanceProxy2D of the second shape in collision.

Parameters

SetTransformA(Libraries.Game.Collision.PhysicsPosition2D transform)

This action associates the tilt and position of the first shape in collision with this DistanceInput2D class.

Parameters

SetTransformB(Libraries.Game.Collision.PhysicsPosition2D transform)

This action associates the tilt and position of the second shape in collision with this DistanceInput2D class.

Parameters

SetUseRadii(boolean flag)

This action allows the DistanceInput2D class to use the radii for both shapes.

Parameters