Class TimeOfImpact
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
The time of impact class
public static class TimeOfImpact
Inheritance
Inherited Members
Fields
TOICalls
The toi max iters
[ThreadStatic]
public static int TOICalls
Field Value
TOIIters
The toi max iters
[ThreadStatic]
public static int TOIIters
Field Value
TOIMaxIters
The toi max iters
[ThreadStatic]
public static int TOIMaxIters
Field Value
TOIMaxRootIters
The toi max root iters
[ThreadStatic]
public static int TOIMaxRootIters
Field Value
TOIRootIters
The toi max root iters
[ThreadStatic]
public static int TOIRootIters
Field Value
Methods
CalculateTimeOfImpact(out TOIOutput, ref TOIInput)
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.
public static void CalculateTimeOfImpact(out TOIOutput output, ref TOIInput input)