public class TimeOfImpact
- Object
- TimeOfImpact
Class used for computing the time of impact. This class should not be constructed usually, just
retrieve from the
SingletonPool.getTOI().Nested types
class TimeOfImpact.TOIInput | Input parameters for TOI |
enum TimeOfImpact.TOIOutputState | |
class TimeOfImpact.TOIOutput | Output parameters for TimeOfImpact |
Fields
public static final int MAX_ITERATIONS = 1000 | |
public static int toiCalls | |
public static int toiIters | |
public static int toiMaxIters | |
public static int toiRootIters | |
public static int toiMaxRootIters |
Constructors
public TimeOfImpact(IWorldPool argPool) |
Methods
public final void timeOfImpact(TimeOfImpact.TOIOutput output, TimeOfImpact.TOIInput input) | Compute the upper bound on time before two shapes penetrate. |
Inherited methods
Field details
MAX_ITERATIONS
public static final int MAX_ITERATIONS = 1000toiCalls
public static int toiCallstoiIters
public static int toiIterstoiMaxIters
public static int toiMaxIterstoiRootIters
public static int toiRootIterstoiMaxRootIters
public static int toiMaxRootItersConstructor details
TimeOfImpact
public TimeOfImpact(IWorldPool argPool)Method details
timeOfImpact
public final void timeOfImpact(TimeOfImpact.TOIOutput output, TimeOfImpact.TOIInput input)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.