Advanced Computer Graphics Rigid Body Simulation

Slides:



Advertisements
Similar presentations
AP Physics C Mechanics Review.
Advertisements

Rigid Body Dynamics Jim Van Verth
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
PHY205 Ch14: Rotational Kin. and Moment of Inertial 1.Recall main points: Angular Variables Angular Variables and relation to linear quantities Kinetic.
Rotational Equilibrium and Rotational Dynamics
Dynamics of Rotational Motion
Rotational Dynamics Chapter 9.
Game Physics – Part II Dan Fleck. Linear Dynamics Recap  Change in position (displacement) over time is velocity  Change in velocity over time is acceleration.
Chapter 10 Rotational Motion and Torque Angular Position, Velocity and Acceleration For a rigid rotating object a point P will rotate in a circle.
1Notes  Demetri Terzopoulos talk: Thursday, 4pm Dempster 310.
Chapter 10: Rotation. Rotational Variables Radian Measure Angular Displacement Angular Velocity Angular Acceleration.
Ch. 7: Dynamics.
Game Physics Chris Miles. The Goal To learn how to create game objects with realistic physics models To learn how to simulate aspects of reality in order.
Phy 211: General Physics I Chapter 10: Rotation Lecture Notes.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Semester Physics 1901 (Advanced) A/Prof Geraint F. Lewis Rm 560, A29
Work Let us examine the work done by a torque applied to a system. This is a small amount of the total work done by a torque to move an object a small.
Rotation and angular momentum
Spring Topic Outline for Physics 1 Spring 2011.
Game Physics – Part IV Moving to 3D
Chapter 11 Angular Momentum. The Vector Product There are instances where the product of two vectors is another vector Earlier we saw where the product.
Game Physics – Part I Dan Fleck Coming up: Rigid Body Dynamics.
Chapters 10, 11 Rotation and angular momentum. Rotation of a rigid body We consider rotational motion of a rigid body about a fixed axis Rigid body rotates.
Chapter 10 Rotation of a Rigid Object about a Fixed Axis.
Chapter 9: Rotational Dynamics
PHY221 Ch14: Rotational Kin. and Moment of Inertial 1.Recall main points: Angular Variables Angular Variables and relation to linear quantities Kinetic.
AP Physics C: Mechanics Chapter 11
Chapter 10 Rotation.
When the axis of rotation is fixed, all particles move in a circle. Because the object is rigid, they move through the same angular displacement in the.
Rotational Motion Chapter 6, 8 and 9. Acceleration in a Circle  Acceleration occurs when velocity changes  This means either speed OR direction changes.
Chapter 10 Rotational Motion.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
Tuesday, June 26, 2007PHYS , Summer 2006 Dr. Jaehoon Yu 1 PHYS 1443 – Section 001 Lecture #15 Tuesday, June 26, 2007 Dr. Jaehoon Yu Rotational.
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
Chapter 17 Rigid Body Dynamics. Unconstrained Motion: 3 Equations for x, y, rotation.
Motion. Mechanics – branch of physics dealing with the action of forces on objects and with the resulting motion.
ECE 383 / ME 442 Fall 2015 Kris Hauser
PHYS 1443 – Section 001 Lecture #19
Basic Rollercoaster Physics
Dr.Mohammed Abdulrazzaq Mechanical Department College of Enginerring
Manipulator Dynamics 1 Instructor: Jacob Rosen
Mechanics Review – SEMESTER 1
7. Rotational motion In pure rotation every point of an object moves in a circle whose center lies on the axis of rotation (in translational motion the.
Rotational Motion I AP Physics C.
Introduction To Robotics
PHYS 1443 – Section 003 Lecture #18
PHYS 1443 – Section 003 Lecture #16
Chapter 11: Angular Momentum
Chapter 8 Rotational Motion.
Rotational Motion I AP Physics C.
PHYS 1441 – Section 002 Lecture #22
9/16/2018 Physics 253.
Rotational Dynamics Chapter 9.
PHYS 1443 – Section 003 Lecture #15
Rolling, Torque, and Angular Momentum
Rotational Motion I AP Physics C.
Manipulator Dynamics 2 Instructor: Jacob Rosen
Spring 2002 Lecture #15 Dr. Jaehoon Yu Mid-term Results
Rigid Body Dynamics (unconstrained)
Chapter 10: Rotational Motional About a Fixed Axis
Rotational Motion I AP Physics C.
2. KINEMATICS AND KINETICS
Two-Dimensional Rotational Kinematics 8.01 W09D1
Two-Dimensional Rotational Kinematics W09D1 Young and Freedman: 1
Rotational Motion I AP Physics C.
Rotational Motion I AP Physics C.
Rotational Motion I AP Physics C.
Physics I LECTURE 21 12/2/09.
PHYS 1443 – Section 003 Lecture #15
Rotational Motion I AP Physics C.
Presentation transcript:

Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan

Upcoming Assignments Who wants a midterm instead of an assignment? Final will be take home Cloth/water/parallel particle sim presentations Volunteers? Papers selected by Thursday

Physical Simulation References Text book (4.3 and Appendix B) Physics for Game Developers (Bourg) Chris Hecker Game Developer articles http://www.d6.com/users/checker/dynamics.htm

Equations of Motion The physics-based equations that define how objects move Gravity Turbulence Contact forces with objects Friction Joint constraints

Equations of Motion Equations of Motion Current State Position and velocity Forces Integrate Integrate Velocities Accelerations Integrate

Equations of Motion Linear motions: Example: Constant acceleration of 5 m/s2

Linear Momentum Mass times velocity = linear momentum, p Newton’s Second Law Ceasing to identify vectors…

Rigid Bodies Imagine a rigid body as a set of point masses Total momentum, pT, is sum of momentums of all points: Center of Mass (CM) is a single point. Vector to CM is linear combination of vectors to all points in rigid body weighted by their masses, divided by total mass of body

Total Momentum Rewrite total momentum in terms of CM Total linear momentum equals total mass times the velocity of the center of mass (For continuous rigid bodies, all summations turn into integrals over the body, but CM still exists) We can treat all bodies as single point mass and velocity

Total Force Total force is derivative of the total momemtum Again, CM simplifies total force equation of a rigid body We can represent all forces acting on a body as if their vector sum were acting on a point at the center of mass with the mass of the entire body

Intermediate Results Divide a force by M to find acceleration of the center of mass Integrate acceleration over time to get the velocity and position of body Note we’ve ignored where the forces are applied to the body In linear momentum, we don’t keep track of the angular terms and all forces are applied to the CM.

Ordinary Differential Equations A DifEq is an equation with Derivatives of the dependent variable Dependent variable Independent variable Ex: v’s derivative is a function of its current value Ordinary refers to ordinary derivatives As opposed to partial derivatives

Integrating ODEs Analytically solving ODEs is complicated Numerically integrating ODEs is much easier (in general) Euler’s Method Runge-Kutta

Euler’s Method Based on calculus definition of first derivative = slope

Euler’s Method Use derivative at time n to integrate h units forward

Euler Errors Depending on ‘time step’ h, errors will accumulate SIGGRAPH Course Notes

Accumulating Errors SIGGRAPH Course Notes

Recap

Angular Effects Let’s remain in 2-D plane for now In addition to kinematic variables x, y positions Add another kinematic variable W angle CCW rotation of object axes relative to world axes

Angular Velocity w is the angular velocity a is the angular acceleration

Computing Velocities How do we combine linear and angular quantities? Consider velocity of a point, B, of a rigid body rotating about its CM r_perp is perpendicular to r vector from O to B Velocity is w-scaled perpendicular vector from origin to point on body

More Details Point B travels W radians Point B travels C units Radius of circle is r C= Wr By definition of radians, where circumference = 2pr B’s speed (magnitude of velocity vector) Differentiate C= Wr w.r.t. time

More Details The direction of velocity is tangent to circle == perpendicular to radius Therefore, linear velocity is angular velocity multiplied by tangent vector

Chasles’ Theorem Any movement is decomposed into: Movement of a single point on body Rotation of body about that point Linear and Angular Components

Angular Momentum The angular momentum of point B about point A (we always measure angular terms about some point) It’s a measure of how much of point B’s linear momentum is rotating around A

Angular Momentum Check: If linear momentum, pB, is perpendicular to r_perp, then dot product of two will cause angular momentum will be zero

Torque Derivative of Angular Momentum Remember force was derivative of linear momentum This measures how much of a force applied at point B is used to rotate about point A, the torque

Total Angular Momentum Total angular momentum about point A is denoted LAT But computation can be expensive to sample all points Sampling of a surface would require surface integration

Moment of Inertia Remember An alternate way of representing the velocity of a point in terms of angular velocity If A is like the origin i is like B, then substitute

Moment of Inertia, IA The sum of squared distances from point A to each other point in the body, and each squared distance is scaled by the mass of each point This term characterizes how hard it is to rotate something Ipencil_center will be much less than Ipencil_tip

Total Torque Differentiate total angular momentum to get total torque This relates total torque and the body’s angular acceleration through the scalar moment of inertia

Planar Dynamics Calculate COM and MOI of rigid body Set initial position and linear/angular velocities Figure out all forces and their points of application Sum all forces and divide by mass to find COM’s linear acceleration For each force, compute perp-dot-product from COM to point of force application and add value into total torque of COM Divide total torque by the MOI at the COM to find angular acceleration Numerically integrate linear/angular accelerations to update the position/orientation and linear/angular velocities Draw body in new position and repeat

Upcoming Topics Collisions 3-dimensional rigid bodies (inertia tensors) Forces (centripetal, centrifugal, viscosity, friction, contact) Constrained dynamics (linked bodies)