#include <Box2D/Collision/b2Collision.h>#include <Box2D/Collision/b2Distance.h>#include <Box2D/Collision/b2TimeOfImpact.h>#include <Box2D/Collision/Shapes/b2CircleShape.h>#include <Box2D/Collision/Shapes/b2PolygonShape.h>#include <Box2D/Common/b2Timer.h>#include <stdio.h>
Go to the source code of this file.
Classes | |
| struct | b2SeparationFunction |
Functions | |
| void | b2TimeOfImpact (b2TOIOutput *output, const b2TOIInput *input) |
Variables | |
| int32 | b2_toiCalls |
| int32 | b2_toiIters |
| int32 | b2_toiMaxIters |
| int32 | b2_toiMaxRootIters |
| float32 | b2_toiMaxTime |
| int32 | b2_toiRootIters |
| float32 | b2_toiTime |
| 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 collision. 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 254 of file b2TimeOfImpact.cpp.
| int32 b2_toiCalls |
Definition at line 29 of file b2TimeOfImpact.cpp.
| int32 b2_toiIters |
Definition at line 29 of file b2TimeOfImpact.cpp.
| int32 b2_toiMaxIters |
Definition at line 29 of file b2TimeOfImpact.cpp.
| int32 b2_toiMaxRootIters |
Definition at line 30 of file b2TimeOfImpact.cpp.
| float32 b2_toiMaxTime |
Definition at line 28 of file b2TimeOfImpact.cpp.
| int32 b2_toiRootIters |
Definition at line 30 of file b2TimeOfImpact.cpp.
| float32 b2_toiTime |
Definition at line 28 of file b2TimeOfImpact.cpp.