Ctrl+K

TimeOfImpact

Declaration

public static class tainicom.Aether.Physics2D.Collision.TimeOfImpact

Fields

TOICalls static

int TOICalls

TOIIters static

int TOIIters

TOIMaxIters static

int TOIMaxIters

TOIRootIters static

int TOIRootIters

TOIMaxRootIters static

int TOIMaxRootIters

Methods

CalculateTimeOfImpact static

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.

void CalculateTimeOfImpact(out TOIOutput output, ref TOIInput input)

Parameters:

Name Type Description
output out tainicom.Aether.Physics2D.Collision.TOIOutput The output.
input ref tainicom.Aether.Physics2D.Collision.TOIInput The input.