TimeOfImpactOutput2D
Package: Libraries.Game.Collision.Narrowphase · Inherits from: Libraries.Language.Object
This class contains the information that you would receive after a time of impact analysis: if the solver has failed, if the objects are overlapping, if the objects are touching, if the objects have separated, or if the objects' relation to each other is unknown.
Variables
integer UNKNOWNinteger TOUCHINGinteger FAILEDinteger SEPARATEDinteger OVERLAPPED
Actions
GetState()
This action gets the state between the collision of the two objects.
Returns
integer
GetTime()
This action gets the time of imapct time between the two objects.
Returns
number
SetState(integer state)
This action sets the state between the collision of two objects.
Parameters
stateinteger
SetTime(number time)
This action sets the time of impact time between the two objects.
Parameters
timenumber