TimeOfImpact class

Class used for computing the time of impact. This class should not be constructed usually, just retrieve from the {@link SingletonPool#getTOI()}.

@author daniel

Constructors

TimeOfImpact(IWorldPool _pool)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

timeOfImpact(TOIOutput output, TOIInput input) → void
Compute the upper bound on time before two shapes penetrate. Time is represented as a fraction between 0,tMax. This uses a swept separating axis and may miss some intermediate, non-tunneling collision. If you change the time interval, you should call this function again. Note: use Distance to compute the contact point and normal at the time of impact. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Properties

toiCalls int
read / write
toiIters int
read / write
toiMaxIters int
read / write
toiMaxRootIters int
read / write
toiRootIters int
read / write

Constants

MAX_ITERATIONS → const int
20
MAX_ROOT_ITERATIONS → const int
50