Color Problem Have a black-box function that returns a bright color in 24-bit RGB Want a paler version of the output What to do?

Slides:



Advertisements
Similar presentations
Collision Response Jim Van Verth
Advertisements

Real-Time Game Physics
CHAPTER 6 BIOMECHANICAL PRINCIPLES OF FORCE PRODUCTION
Physics for Game Programmers Contacts or “How (Not) To Make It Stick” Gino van den Bergen
Rotational Motion Chapter Opener. Caption: You too can experience rapid rotation—if your stomach can take the high angular velocity and centripetal acceleration.
3.2. I NTRODUCTION TO R EAL - TIME P HYSICS Overview of core principles behind real-time physics systems.
Chapter 15: Kinetics of a Particle: Impulse and MomentumTextbook: Engineering Mechanics- STATICS and DYNAMICS- 11th Ed., R. C. Hibbeler and A. Gupta Course.
Principle of Work and Energy
MAE 242 Dynamics – Section I Dr. Kostas Sierros.
Rotation and Torque Lecture 09 Thursday: 12 February 2004.
Angular Momentum (of a particle) O The angular momentum of a particle, about the reference point O, is defined as the vector product of the position, relative.
3.5. C ONTACT R ESOLUTION Resolving a set of contacts.
Chapter 5 Rotation of a Rigid Body. §5-5 Angular Momentum of a rigid Body Conservation of Angular Momentum §5-1 Motion of a Rigid body §5-2 Torque The.
1Notes  Reference  Witkin and Baraff, “Physically Based Modelling” course, SIGGRAPH 2001  Link on the course website.
1cs533d-winter-2005 Notes  Assignment 2 going okay? Make sure you understand what needs to be done before the weekend  Read Guendelman et al, “Nonconvex.
Chapter 6 Momentum and Collisions. Momentum The linear momentum of an object of mass m moving with a velocity v is defined as the product of the mass.
1/23/ L IAP 2006  Last Lecture  Energy and Momentum of rotation  Today  More about Momentum of rotation  Important Concepts  Equations for.
Physics 101: Lecture 15, Pg 1 Physics 101: Lecture 15 Impulse and Momentum l Today’s lecture will be a review of Chapters and l New material:
Chapter 10 Rotational Motion
1/18/ L IAP 2007  Last Lecture  Pendulums and Kinetic Energy of rotation  Today  Energy and Momentum of rotation  Important Concepts  Equations.
Physics 218: Mechanics Instructor: Dr. Tatiana Erukhimova Lecture 37 Exam: from 6 pm to 8 pm.
1cs533d-term Notes  Typo in test.rib --- fixed on the web now (PointsPolygon --> PointsPolygons)
Change in momentum. Impulse In order to change the momentum of an object, an impulse must be applied to it.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Physically Based Animation.
Chapter 12 Linear Kinematics of Human Movement
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Linear Momentum and Collisions المحاضرة العاشرة. Linear Momentum and Collisions Chapter 9.
Physics Midterm Review Terms - Measurements time elapsed = duration of an event – there is a beginning, a middle, and an end to any event. distance.
Give the expression for the velocity of an object rolling down an incline without slipping in terms of h (height), M(mass), g, I (Moment of inertia) and.
Computer Assisted Laboratory Experiments in Mechanics Roman Kezerashvili New York City Technical College The City University of New York.
Biomechanical movement principles Pages
ESS 303 – Biomechanics Linear Kinetics. Kinetics The study of the forces that act on or influence movement Force = Mass * Acceleration: F = M * a Force.
Chapter 12 Linear Kinetics of Human Movement Basic Biomechanics, 6 th edition By Susan J. Hall, Ph.D. © 2012 The McGraw-Hill Companies, Inc. All rights.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
3D Graphics for Game Programming Chapter XII Physics-based Simulation.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Collisions & Contact.
Angular Kinetics After reading this chapter, the student should be able to: Define torque and discuss the characteristics of a torque. State the angular.
ENGR 214 Chapter 17 Plane Motion of Rigid Bodies:
Momentum and Its Conservation
Biomechanical Principles and Applications. Some Important Terms Equilibrium: a 'perfect' situation where more than one force acts on a body but, because.
Chapter 17 PLANE MOTION OF RIGID BODIES: ENERGY AND MOMENTUM METHODS
Make-up Labs Arrange with Viktor in BSB-117 Physics 1D03 - Lecture 31.
Momentum and Collisions Unit 5, Presentation 1. Momentum  The linear momentum of an object of mass m moving with a velocity is defined as the product.
Joint Reaction Forces Muscle Moments Joint Power
Equilibrium,Torque and Angular Momentum Lecture 10 Tuesday: 17 February 2004.
Momentum Crashing Cars Water on Walls Hitting Tennis Balls Watching Skaters Fall.
Chipmunk Physics Remember that we talked about this a bit when we did collision handlers for the space ship integration task (SpritesActionsPhysicsSound).
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
We’re on a roll! The Physics of Rotation. Rotational Momentum and Energy Chapter 12.
Impulse, Momentum and Collisions. Interactions and Impulse From –an expertly placed shot in a soccer match –to the violent tug-of- war between galaxies.
NM Unit 8 Topic(s): Angular Momentum Learning Goals: Adapt linear collision analysis for rotational collision analysis Develop a solution strategy to solve.
0.
Momentum Chapter 9. Impulse and Momentum Applications  Science of Speed: Momentum Science of Speed: Momentum.
Angular Momentum Section 8.1 (Ewen et al. 2005) Objectives: Define and calculate moment of inertia. Define and calculate moment of inertia. Define and.
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
Approach Two aspects: Physical collision experiment with eraser boxes o provides real world data to corroborate simulation Interactive computer simulation.
IMPULSE On a secret mission… … to change equilibrium states!
 The metric system – units, prefixes  Unit conversions  Algebra and trigonometry  Orders of magnitude.
Concepts for Programming a Rigid Body Physics Engine Part 2 Presented by Scott Hawkins.
UNIT 6 Rotational Motion & Angular Momentum Rotational Dynamics, Inertia and Newton’s 2 nd Law for Rotation.
2D Simulation of Rigid Bodies
Angular Momentum 7.2.
3.7. Other Game Physics Approaches
Make-up Labs Arrange with Victor in BSB-117 Physics 1D03 - Lecture 31.
Devil physics The baddest class on campus AP Physics
Chapter 8 Rotational Motion.
Computer Animation Algorithms and Techniques
Biomechanical Principles and Applications
Presentation transcript:

Color Problem Have a black-box function that returns a bright color in 24-bit RGB Want a paler version of the output What to do?

Collision Resolution

Collision resolution Pre-collision positions, velocities known Collision: black box Post-collision positions, velocities known Assumption: we know collision location

Impulse Instantaneous change in momentum j = ∆P Apply within one timestep Effectively, infinite force

Aside: Alternatives Not the only approach to collision resolution "soft body": force proportional to penetration distance (one-way spring force)

One-body collisions Most common case: collision of object with scenery Calculations generalize to two-body – perform calculations in reference frame where one body is at rest, i.e., add one body's velocity to the other before starting Simpler to set up this way

Collision Normal direction in which bodies collide often simple: – line joining centres – normal of collision point on obstacle (often good approximation anyway)

Closing Velocity velocity with which things collide magnitude: dot product of velocity and collision normal If colliding: negative value If separating: positive

Post-Collision Velocity Perfectly elastic collision: v'.n c = -v.n c Perfectly plastic collision: v'.n c = 0 "Coefficient of restitution": linear interpolation between these extremes – v'.n c = -c v.n c

Contact Contact management: avoid rattling effects of tiny collisions Threshold for contact: if closing velocity smaller than threshold, set coefficient of restitution to zero – and perhaps stop simulating this object for now

Impulse Given output velocity, update velocity of body using momentum (impulse): j = -(1+c)(v.n c )n c – Unpacking: v is relative velocity n c is collision normal c is coefficient of restitution

Closing rotational velocity Recall that rotation produces instantaneous linear velocity: v = ω x r so, add this velocity to centre of mass velocity to get velocity of collision point – r = distance from body centre to collision point – if using angular momentum, ω = I -1 L

Impulsive torque Compute impulse as before: have j = ∆P Now, compute impulsive torque ∆L Actually simple: ∆L = r x j – recall τ = r x F, same idea

Wrapping up Apply impulse, impulsive torque to both bodies (one positive, one negative) If one body is fixed: effectively infinite mass, moment of inertia (zero inverse mass) so no resulting velocity