1 / 15

Rigid Bodies

Rigid Bodies. Definition. A rigid body is big enough, so it has a shape. is rigid. It doesn’t deform. is easier to simulate. Representation. Moved. A rigid body can be represented as a set of particles. Those particles move together. Representation. Moved. c. X(t ).

amable
Download Presentation

Rigid Bodies

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Rigid Bodies

  2. Definition • A rigid body • is big enough, so it has a shape. • is rigid. It doesn’t deform. • is easier to simulate.

  3. Representation Moved • A rigid body can be represented as a set of particles. Those particles move together.

  4. Representation Moved c X(t) • Mass center defines the position of a rigid body.

  5. Representation r(t)=R(t)r0 r0 Moved • A rotation matrix R(t) defines the orientation. • r(t) is the vector from the mass center to each particle.

  6. Representation p(t) p0 r(t)=R(t)r0 r0 Moved c x(t) • So each individual particle i moves: P0=c+r0 p(t) = x(t)+r(t) = x(t)+R(t)r0

  7. Math

  8. Basic Rigid Body Simulation • Given the status at the current frame, simulate the status for the next frame. t+2 t+3 t t+1

  9. One Problem • Numerical error exists. So the simulation may cause matrix R to be more than a rotation matrix. It can introduce deformations, such as scaling or shearing. t+2 t+3 t t+1

  10. Solution (b, c, d) • Quaternion also defines a rotation: • Properties: • Corresponding rotation matrix: θ

  11. Solution • Quaternion product: • Properties: • Basically, we use q(t) to represent rotation/orientation, rather than a matrix.

  12. Physics • Mass: • Mass center: • Force: • Torque: • Linear momentum: • Angular momentum: p2 p3 p1 p0 ri(t) pi

  13. Physics • I(t) is the inertia matrix (1 is a 3-by-3 identity matrix): • This computation is expensive. • But it can be simplified: • Ibody is the inertia without motion. It is constant and can be pre-computed! p2 p3 p1 p0 ri pi

  14. Equations to Update Status Linear Angular Position: Quaternion: Angular Velocity: Velocity: Force: Torque: Mass: Inertia:

  15. Explicit Method • Given the status at the current frame, simulate the status for the next frame. t+2 t+3 t t+1

More Related