TimeOfImpact class
Class used for computing the time of impact. This class should not be constructed usually, just retrieve from the {@link SingletonPool#getTOI()}.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
timeOfImpact(
TOIOutput output, TOIInput input, Distance distance) → 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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- toiCalls ↔ int
-
getter/setter pair
- toiIterations ↔ int
-
getter/setter pair
- toiMaxIterations ↔ int
-
getter/setter pair
- toiMaxRootIterations ↔ int
-
getter/setter pair
- toiRootIterations ↔ int
-
getter/setter pair
Constants
- maxIterations → const int
- maxRootIterations → const int