estimate collision response between two bodies
predicts post-collision velocities and impulses by running a mini PGS solver on a local copy of the velocities. designed to be called from onContactAdded to estimate impact strength before the actual solver runs.
result object to write to
first body
second body
contact manifold
combined friction coefficient
combined restitution coefficient
minimum relative velocity to apply restitution (default 1.0 m/s)
number of PGS iterations (default 10)
estimate collision response between two bodies
predicts post-collision velocities and impulses by running a mini PGS solver on a local copy of the velocities. designed to be called from onContactAdded to estimate impact strength before the actual solver runs.