Classes | Functions | Variables
b2_time_of_impact.cpp File Reference
#include "box2d/b2_collision.h"
#include "box2d/b2_distance.h"
#include "box2d/b2_circle_shape.h"
#include "box2d/b2_polygon_shape.h"
#include "box2d/b2_time_of_impact.h"
#include "box2d/b2_timer.h"
#include <stdio.h>
Include dependency graph for b2_time_of_impact.cpp:

Go to the source code of this file.

Classes

struct  b2SeparationFunction
 

Functions

void b2TimeOfImpact (b2TOIOutput *output, const b2TOIInput *input)
 

Variables

B2_API int32 b2_toiCalls
 
B2_API int32 b2_toiIters
 
B2_API int32 b2_toiMaxIters
 
B2_API int32 b2_toiMaxRootIters
 
B2_API float b2_toiMaxTime
 
B2_API int32 b2_toiRootIters
 
B2_API float b2_toiTime
 

Function Documentation

◆ b2TimeOfImpact()

void b2TimeOfImpact ( b2TOIOutput output,
const b2TOIInput input 
)

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 collisions. If you change the time interval, you should call this function again. Note: use b2Distance to compute the contact point and normal at the time of impact.

Definition at line 258 of file b2_time_of_impact.cpp.

Variable Documentation

◆ b2_toiCalls

B2_API int32 b2_toiCalls

Definition at line 33 of file b2_time_of_impact.cpp.

◆ b2_toiIters

B2_API int32 b2_toiIters

Definition at line 33 of file b2_time_of_impact.cpp.

◆ b2_toiMaxIters

B2_API int32 b2_toiMaxIters

Definition at line 33 of file b2_time_of_impact.cpp.

◆ b2_toiMaxRootIters

B2_API int32 b2_toiMaxRootIters

Definition at line 34 of file b2_time_of_impact.cpp.

◆ b2_toiMaxTime

B2_API float b2_toiMaxTime

Definition at line 32 of file b2_time_of_impact.cpp.

◆ b2_toiRootIters

B2_API int32 b2_toiRootIters

Definition at line 34 of file b2_time_of_impact.cpp.

◆ b2_toiTime

B2_API float b2_toiTime

Definition at line 32 of file b2_time_of_impact.cpp.



mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22