Module org.dyn4j
Package org.dyn4j.dynamics.contact
Interface TimeOfImpactSolver<T extends PhysicsBody>
-
- Type Parameters:
T
- thePhysicsBody
type
- All Known Implementing Classes:
ForceCollisionTimeOfImpactSolver
public interface TimeOfImpactSolver<T extends PhysicsBody>
Represents a position solver for a pair ofPhysicsBody
s who came in contact during a time step but where not detected by the discrete collision detectors.- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
solve(T body1, T body2, TimeOfImpact timeOfImpact, Settings settings)
Handles the missed collision between the given bodies using the given time of impact.
-
-
-
Method Detail
-
solve
void solve(T body1, T body2, TimeOfImpact timeOfImpact, Settings settings)
Handles the missed collision between the given bodies using the given time of impact.- Parameters:
body1
- the firstPhysicsBody
body2
- the secondPhysicsBody
timeOfImpact
- theTimeOfImpact
settings
- the current world settings
-
-