Attenuate the warmstart impulse for CCD contacts.
CCD contacts result in very strong, instantaneous, impulses. So it is preferable to attenuate their contribution to subsequent timesteps to avoid overshooting.
This commit is contained in:
@@ -584,7 +584,9 @@ impl NarrowPhase {
|
||||
friction,
|
||||
restitution,
|
||||
tangent_velocity: Vector::zeros(),
|
||||
data: contact.data,
|
||||
warmstart_impulse: contact.data.impulse,
|
||||
warmstart_tangent_impulse: contact.data.tangent_impulse,
|
||||
prev_rhs: contact.data.rhs,
|
||||
};
|
||||
|
||||
manifold.data.solver_contacts.push(solver_contact);
|
||||
|
||||
Reference in New Issue
Block a user