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
GetSupportA()
This action returns a support point on shape A in global coordinates.
Returns
GetSupportB()
This action gets a support point on shape B in global coordinates.
Returns
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
coordinatenumber
SetIndexA(integer index)
This action sets the index of supportA on shape A.
Parameters
indexinteger
SetIndexB(integer index)
This action sets the index of supportB on shape B.
Parameters
indexinteger
SetSupport(Libraries.Compute.Vector2 support)
This action sets the support point on the Minkowski difference of the two shapes.
Parameters
supportLibraries.Compute.Vector2
SetSupportA(Libraries.Compute.Vector2 support)
This action sets a support point on shape A in global coordinates.
Parameters
supportLibraries.Compute.Vector2
SetSupportB(Libraries.Compute.Vector2 support)
This action sets a support point on shape B in global coordinates.
Parameters
supportLibraries.Compute.Vector2