diff options
| author | Crozet Sébastien <developer@crozet.re> | 2021-02-23 15:49:23 +0100 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2021-02-23 15:49:23 +0100 |
| commit | babcab0bed23fadd23181ccc58aae34fb80d01d8 (patch) | |
| tree | dcdb17f061860a93873659c55f029a8fbf5cbccc /src/geometry/contact_pair.rs | |
| parent | f8bf96fdc8a0cfd7324d589736d41057a6c1bfe8 (diff) | |
| download | rapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.tar.gz rapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.tar.bz2 rapier-babcab0bed23fadd23181ccc58aae34fb80d01d8.zip | |
Update the testbed to use PhysicsHooks.
Diffstat (limited to 'src/geometry/contact_pair.rs')
| -rw-r--r-- | src/geometry/contact_pair.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/geometry/contact_pair.rs b/src/geometry/contact_pair.rs index 11e0188..50094ca 100644 --- a/src/geometry/contact_pair.rs +++ b/src/geometry/contact_pair.rs @@ -16,6 +16,12 @@ bitflags::bitflags! { } } +impl Default for SolverFlags { + fn default() -> Self { + SolverFlags::COMPUTE_IMPULSES + } +} + #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] /// A single contact between two collider. @@ -126,10 +132,11 @@ pub struct SolverContact { pub friction: Real, /// The effective restitution coefficient at this contact point. pub restitution: Real, - /// The artificially add relative velocity at the contact point. + /// The desired tangent relative velocity at the contact point. + /// /// This is set to zero by default. Set to a non-zero value to /// simulate, e.g., conveyor belts. - pub surface_velocity: Vector<Real>, + pub tangent_velocity: Vector<Real>, /// Associated contact data used to warm-start the constraints /// solver. pub data: ContactData, |
