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 UNKNOWN
  • integer TOUCHING
  • integer FAILED
  • integer SEPARATED
  • integer 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

  • state integer

SetTime(number time)

This action sets the time of impact time between the two objects.

Parameters

  • time number

Inherited Actions

3 actions from Libraries.Language.Object