C# Class Box2D.Collision.TimeOfImpact

Class used for computing the time of impact. This class should not be constructed usually, just retrieve from the {@link SingletonPool#getTOI()}.
Show file Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
ToiCalls int
ToiIters int
ToiMaxIters int
ToiMaxRootIters int
ToiRootIters int

Public Methods

Method Description
GetTimeOfImpact ( TOIOutput output, TOIInput input ) : 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.

TimeOfImpact ( IWorldPool argPool ) : System.Diagnostics

Method Details

GetTimeOfImpact() public method

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 GetTimeOfImpact ( TOIOutput output, TOIInput input ) : void
output TOIOutput
input TOIInput
return void

TimeOfImpact() public method

public TimeOfImpact ( IWorldPool argPool ) : System.Diagnostics
argPool IWorldPool
return System.Diagnostics

Property Details

ToiCalls public static property

public static int ToiCalls
return int

ToiIters public static property

public static int ToiIters
return int

ToiMaxIters public static property

public static int ToiMaxIters
return int

ToiMaxRootIters public static property

public static int ToiMaxRootIters
return int

ToiRootIters public static property

public static int ToiRootIters
return int