Table of Contents

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

int

TOIIters

The toi max iters

[ThreadStatic]
public static int TOIIters

Field Value

int

TOIMaxIters

The toi max iters

[ThreadStatic]
public static int TOIMaxIters

Field Value

int

TOIMaxRootIters

The toi max root iters

[ThreadStatic]
public static int TOIMaxRootIters

Field Value

int

TOIRootIters

The toi max root iters

[ThreadStatic]
public static int TOIRootIters

Field Value

int

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)

Parameters

output TOIOutput

The output.

input TOIInput

The input.