SimplexVertex2D

Package: Libraries.Game.Collision.Narrowphase · Inherits from: Libraries.Language.Object

This class records the support points between shapes A and B. This class is used internally by Simplex2D.

Actions

GetBarycentricCoordinate()

This action gets the barycentric coordinate that is multiplied to the support points stored in the current SimplexVertex2D class.

Returns

number

GetIndexA()

This action returns the index of supportA on shape A.

Returns

integer

GetIndexB()

This action returns the index of supportB on shape B.

Returns

integer

GetSupport()

This action gets the support point on the Minkowski difference of the two shapes.

Returns

Libraries.Compute.Vector2

GetSupportA()

This action returns a support point on shape A in global coordinates.

Returns

Libraries.Compute.Vector2

GetSupportB()

This action gets a support point on shape B in global coordinates.

Returns

Libraries.Compute.Vector2

Set(Libraries.Game.Collision.Narrowphase.SimplexVertex2D vertex)

This action sets this SimplexVertex2D class with another SimplexVertex2D.

Parameters

SetBarycentricCoordinate(number coordinate)

This action sets the barycentric coordinate that is multiplied to the support points stored in the current SimplexVertex2D class.

Parameters

  • coordinate number

SetIndexA(integer index)

This action sets the index of supportA on shape A.

Parameters

  • index integer

SetIndexB(integer index)

This action sets the index of supportB on shape B.

Parameters

  • index integer

SetSupport(Libraries.Compute.Vector2 support)

This action sets the support point on the Minkowski difference of the two shapes.

Parameters

SetSupportA(Libraries.Compute.Vector2 support)

This action sets a support point on shape A in global coordinates.

Parameters

SetSupportB(Libraries.Compute.Vector2 support)

This action sets a support point on shape B in global coordinates.

Parameters

Inherited Actions

3 actions from Libraries.Language.Object