Private
accuracy_the collision distance accuracy: how close we must be to the moment of collision in order to be able to handle it.
Private
distance_distance between objects; negative = penetration
amount of impulse applied during collision
Private
targettarget gap size after collision search finishes
Returns true if this represents a bilateral constraint which can both push and pull; for example a Joint between two objects.
true if this is a bilateral constraint
Whether close enough to the point when this Collision can be handled.
The allowTiny
parameter exists because of cases where a
small distance collision cannot be backed-up in time to get near to the preferred
target 'half gap' distance.
regard as 'close enough' Collisions that have smaller distance than distance accuracy would normally allow
true if close enough to the point when this Collision can be handled.
Returns true if this represents a collision state, generally when two objects are interpenetrating. The collision search mechanism implemented by AdvanceStrategy.advance operates to set the simulation at a time very close to but just before any Collision is happening, see getEstimatedTime.
true
if this represents a collision state
Mark this Collision as one that needs handling because it is has caused the collision engine to backup in time in order to resolve this Collision. This is useful because after backing up in time, a Collision may no longer report itself as isColliding.
true if this Collision needs to be resolved
Generated using TypeDoc
Collision between an atom and a wall in MoleculeSim simulation.