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()}.
Mostrar archivo 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_oe static_oe property

public static int ToiCalls
return int

ToiIters public_oe static_oe property

public static int ToiIters
return int

ToiMaxIters public_oe static_oe property

public static int ToiMaxIters
return int

ToiMaxRootIters public_oe static_oe property

public static int ToiMaxRootIters
return int

ToiRootIters public_oe static_oe property

public static int ToiRootIters
return int