Module org.dyn4j
Package org.dyn4j.dynamics.contact
Class ForceCollisionTimeOfImpactSolver<T extends PhysicsBody>
- Object
-
- ForceCollisionTimeOfImpactSolver<T>
-
- Type Parameters:
T
- thePhysicsBody
type
- All Implemented Interfaces:
TimeOfImpactSolver<T>
public class ForceCollisionTimeOfImpactSolver<T extends PhysicsBody> extends Object implements TimeOfImpactSolver<T>
Represents a position solver for a pair ofBody
s who came in contact during a time step but where not detected by the discrete collision detectors.This class will translate and rotate the
Body
s into a collision.- Since:
- 2.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description ForceCollisionTimeOfImpactSolver()
-
Method Summary
All Methods Instance Methods Concrete 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
public void solve(T body1, T body2, TimeOfImpact timeOfImpact, Settings settings)
Description copied from interface:TimeOfImpactSolver
Handles the missed collision between the given bodies using the given time of impact.- Specified by:
solve
in interfaceTimeOfImpactSolver<T extends PhysicsBody>
- Parameters:
body1
- the firstPhysicsBody
body2
- the secondPhysicsBody
timeOfImpact
- theTimeOfImpact
settings
- the current world settings
-
-