Classes | Functions
b2_time_of_impact.h File Reference
#include "b2_api.h"
#include "b2_math.h"
#include "b2_distance.h"
Include dependency graph for b2_time_of_impact.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  b2TOIInput
 Input parameters for b2TimeOfImpact. More...
 
struct  b2TOIOutput
 Output parameters for b2TimeOfImpact. More...
 

Functions

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

Function Documentation

◆ b2TimeOfImpact()

B2_API 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.



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