[−][src]Module box2d_rs::b2_time_of_impact
Structs
B2toiinput | Input parameters for b2TimeOfImpact |
B2toioutput | Output parameters for b2TimeOfImpact. |
Enums
B2toioutputState |
Statics
B2_TOI_CALLS | |
B2_TOI_ITERS | |
B2_TOI_MAX_ITERS | |
B2_TOI_MAX_ROOT_ITERS | |
B2_TOI_MAX_TIME | ns |
B2_TOI_ROOT_ITERS | |
B2_TOI_TIME | ns |
Functions
b2_time_of_impact | Compute the upper bound on time before two shapes penetrate. Time is represented as a fraction between [0,t_max]. 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. |