Docsity

Rigid Body Dynamics - Physics - Lecture Slides, Slides of Physics

Partial preview of the text

Download Rigid Body Dynamics - Physics - Lecture Slides and more Slides Physics in PDF only on Docsity!

Rigid Body Dynamics (II)

Impulse-based Dynamics

Bodies intersect! classify contacts

  • Bodies separating
    • vrel > ε
    • No response required
  • Colliding contact (Part I)
    • vrel < -ε
  • Resting contact (Part II)
      • ε < v (^) rel < ε
    • Gradual contact forces avoid interpenetration
    • All resting contact forces must be computed and applied together because they can influence one another

Handling of Resting Contact

  • Global vs. Local Methods
    • Constraint-based vs. Impulse-based
  • Colliding Contacts
  • Resting Contacts
  • Force application
  • Friction

Impulse vs. Constraint

  • Impulse-based dynamics (local)
    • Faster
    • Simpler
    • No explicit contact constraints
  • Constraint-based dynamics (global)
    • Must declare each contact to be a resting contact or a colliding contact

Impulse vs. Constraint

Resting Contact Response

  • The forces at each contact must satisfy three criteria - Prevent inter-penetration: - Repulsive -- we do not want the objects to be glued together: - Should become zero when the bodies start to separate:
  • To implement hinges and pin joints:

di (t 0 )≥ 0

fi ≥ 0

fi d i(t 0 ) = 0

di (t 0 )= 0

Linear Complimentary Problem

(LCP)

  • Need to solve a quadratic program to solve for the f (^) i’s - General LCP is NP-complete problem - A is symmetric positive semi-definite (SPD) making the solution practically possible
  • There is an iterative method to solve for without using a quadratic program [Baraff, Fast contact force computation for nonpenetrating rigid bodies ]

Linear Complimentary Problem

(LCP)

  • In general, LCP can be solved with either: - pivoting algos (like Gauss elimination) - they change the matrix - do not provide useful intermediate result - may exploit sparsity well - iterative algos (like Conjugate Gradients) - only need read access to matrix - can stop early for approximate solution - faster for large matrices - can be warm started (ie. from previous result)

Local vs. Global

  • Impulses often applied in local contact resolution scheme
  • Applied impulses can break non-penetration constraint for other contacting points
  • Often applied iteratively , until all resting contacts are resolved

Hard case for local approach

  • Prioritize contact points along major

axes of acceleration (gravity) and

velocity

  • Performance improvement: 25% on scene with 60 stacked objects

Frictional Forces Extension

  • Constraint-based dynamics
    • Reformulate constraints and solve
    • No more on this here
  • Impulse-based dynamics
    • Must not add energy to the system in the presence of friction so we have to reformulate the impulse to be applied

Collision Coordinate System

  • p is the applied impulse. We use j because P is for linear momentum

Impulse Reformulation

 The collision is instantaneous but we can assume that it occurs over a very small period of time: 0  t (^) mc  tf.

 tmc is the time of maximum compression

uz is the relative normal velocity. We used vrel before. From now on we will use vz.

Impulse Reformulation

pz is the impulse magnitude in the normal direction. We used j before. From now on we will use j (^) z.  W (^) z is the work done in the normal direction.