Collision Resolution

Similar documents
GAME PHYSICS (INFOMGP) FINAL EXAM

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Projects. Assignments. Plan. Motivational Films. Motivational Film 1/6/09. Dynamics II. Forces, Collisions and Impulse

Final Exam. June 10, 2008, 1:00pm

The... of a particle is defined as its change in position in some time interval.

Chapter 8: Momentum, Impulse, & Collisions. Newton s second law in terms of momentum:

z F 3 = = = m 1 F 1 m 2 F 2 m 3 - Linear Momentum dp dt F net = d P net = d p 1 dt d p n dt - Conservation of Linear Momentum Δ P = 0

Notes Momentum. Momentum and Impulse. - The product (multiplication) of an objects mass and velocity is called momentum.

Collisions. Conservation of Momentum Elastic and inelastic collisions. Serway For practice: Chapter 9, problems 10, 11, 23, 70, 75

Q1. For a completely inelastic two-body collision the kinetic energy of the objects after the collision is the same as:

Name: Class: Date: p 1 = p 2. Given m = 0.15 kg v i = 5.0 m/s v f = 3.0 m/s Solution

Compare the momentum of the same object moving with different velocities. Identify examples of change in the momentum of an object.

System of objects (particles)

Thursday Simulation & Unity

Lecture 6 Physics 106 Spring 2006

Chapter 9 Linear Momentum and Collisions

Energy Conservation AP

AP PHYSICS C Momentum Name: AP Review

A) 4.0 m/s B) 5.0 m/s C) 0 m/s D) 3.0 m/s E) 2.0 m/s. Ans: Q2.

Section 1 Momentum and Impulse. Chapter 6. Preview. Objectives Linear Momentum. Houghton Mifflin Harcourt Publishing Company

PHYSICS I RESOURCE SHEET

Momentum. The way to catch a knuckleball is to wait until it stops rolling and then pick it up. -Bob Uecker

Simple Harmonic Motion Practice Problems PSI AP Physics B

Momentum Conceptual Questions. 1. Which variable has more impact on an object s motion? Its mass or its velocity?

3. Kinetics of Particles

AP Physics C. Momentum. Free Response Problems

Write your name legibly on the top right hand corner of this paper

Chapter 8 LINEAR MOMENTUM AND COLLISIONS

11. (7 points: Choose up to 3 answers) What is the tension,!, in the string? a.! = 0.10 N b.! = 0.21 N c.! = 0.29 N d.! = N e.! = 0.

Chapter 9. Linear Momentum

4.) A baseball that weighs 1.6 N leaves a bat with a speed of 40.0 m/s. Calculate the kinetic energy of the ball. 130 J

Part Two: Earlier Material

Momentum. A ball bounces off the floor as shown. The direction of the impulse on the ball, is... straight up straight down to the right to the left

Physics of Rotation. Physics 109, Introduction To Physics Fall 2017

p p I p p p I p I p p

PHYS 154 Practice Test 3 Spring 2018

Chapter Work, Energy and Power. Q1. The co-efficient of restitution e for a perfectly elastic collision is [1988] (a) 1 (b) 0 (c) (d) 1 Ans: (a)

Assignment 4: Rigid Body Dynamics

Welcome back to Physics 211

What are two forms of Potential Energy that we commonly use? Explain Conservation of Energy and how we utilize it for problem-solving technics.

Impulse/Momentum And Its Conservation

Impulse (J) J = FΔ t Momentum Δp = mδv Impulse and Momentum j = (F)( p = ( )(v) F)(Δ ) = ( )(Δv)

Practice Test for Midterm Exam

PH1104/PH114S MECHANICS

Chapter 7- Linear Momentum

Ch. 2 The Laws of Motion

Name & Surname:... No:... Class: 11 /...

Sometimes (like on AP test) you will see the equation like this:

Simulation in Computer Graphics Elastic Solids. Matthias Teschner

Center of Mass & Linear Momentum

Conservation of Momentum: Marble Collisions Student Version

Chapter 7. Impulse and Momentum

CHAPTER 9 LINEAR MOMENTUM AND COLLISION

2016 PHYSICS FINAL REVIEW PACKET

(D) Based on Ft = m v, doubling the mass would require twice the time for same momentum change

Which iceboat crosses the finish line with more kinetic energy (KE)?

A Level. A Level Physics. MECHANICS: Momentum and Collisions (Answers) AQA, Edexcel, OCR. Name: Total Marks: /30

6.1 Momentum and Impulse A. What is momentum? Newton defined momentum as the quantity of motion

UNIVERSITY OF SASKATCHEWAN Department of Physics and Engineering Physics

Circle correct course: PHYS 1P21 or PHYS 1P91 BROCK UNIVERSITY

Practice Exam #3 A N B. 1.2 N C N D N E. 0 N

Nov. 27, 2017 Momentum & Kinetic Energy in Collisions elastic collision inelastic collision. completely inelastic collision

Rotational & Rigid-Body Mechanics. Lectures 3+4

OCR Maths M2. Topic Questions from Papers. Collisions

Solving Momentum Problems

Study Guide For Midterm - 25 weeks Physics Exam. d. the force exerted by a towing cable on the car. c. the upward force the road exerts on the car.

Exam II. Spring 2004 Serway & Jewett, Chapters Fill in the bubble for the correct answer on the answer sheet. next to the number.

Your Name: PHYSICS 101 MIDTERM. Please circle your section 1 9 am Galbiati 2 10 am Kwon 3 11 am McDonald 4 12:30 pm McDonald 5 12:30 pm Kwon

Rigid bodies - general theory

Lab 9 CONSERVATION OF LINEAR MOMENTUM

Conservation of Momentum

2007 Problem Topic Comment 1 Kinematics Position-time equation Kinematics 7 2 Kinematics Velocity-time graph Dynamics 6 3 Kinematics Average velocity

Exam 2--PHYS 101--F11--Chapters 4, 5, & 6

Momentum Practice Problems

Lecture 13 REVIEW. Physics 106 Spring What should we know? What should we know? Newton s Laws

23. A force in the negative direction of an x-axis is applied for 27ms to a 0.40kg ball initially moving at 14m/s in the positive direction of the

Honor Physics Final Exam Review. What is the difference between series, parallel, and combination circuits?

PROBLEM 2 10 points. [ ] increases [ ] decreases [ ] stays the same. Briefly justify your answer:

SMART CART CONSERVATION OF MOMENTUM

Conservation of Momentum

Chapter 8- Rotational Motion

Multiple Choice Review for Final Exam ~ Physics 1020

(A) 0 (B) mv (C) 2mv (D) 2mv sin θ (E) 2mv cos θ

Distance travelled time taken and if the particle is a distance s(t) along the x-axis, then its instantaneous speed is:

Review questions. Before the collision, 70 kg ball is stationary. Afterward, the 30 kg ball is stationary and 70 kg ball is moving to the right.

= y(x, t) =A cos (!t + kx)

PS113 Chapter 7. Impulse and Momentum

Chapter 9. Collisions. Copyright 2010 Pearson Education, Inc.

PY205N Spring The vectors a, b, and c. are related by c = a b. The diagram below that best illustrates this relationship is (a) I

Chapter 9 Linear Momentum and Collisions

LINEAR MOMENTUM AND COLLISIONS

Table of Contents. Pg. # Momentum & Impulse (Bozemanscience Videos) 1 1/11/16

PROJECTILE MOTION: CONSERVATION OF MOMENTUM 19 FEBRUARY 2013

Chapter 7. Impulse and Momentum

a = v2 R where R is the curvature radius and v is the car s speed. To provide this acceleration, the car needs static friction force f = ma = mv2

Extra credit assignment #4 It can be handed in up until one class before Test 4 (check your course outline). It will NOT be accepted after that.

Multiple choice questions [60 points]

Impulse and Momentum continued

Collision Theory Challenge Problems

Last Name: First Name Network-ID Discussion Section: Discussion TA Name:

Transcription:

Collision Resolution

Our Problem Collision detection (supposedly) reported a collision. We want to solve it, i.e. move back the colliding objects apart from each other. In which direction and with what intensity? Momentum, velocity, forces 2

Collision resolution To resolve the collision it is necessary to have: Time of collision: the first instant the collision is detected. Contact point: the point where the colliding objects first touch. Contact normal: a normal to the plane passing through the contact point and oriented in the direction separating the two objects. 3

Computing the exact time (somewhere between t and t + t) of collision is not always feasible We can approximate it by bisection. Repeatedly bisecting the time interval and testing, finding a arbitrary short interval [t 0, t 1 ] for which: The objects do not collide at t 0. The objects collide at t 1. Time of collision Computationally expensive! Usually in games, the frame rate t is small enough to not bother. 4

Contact point and normal To estimate the direction of the collision we use the position of the objects at the frame before the collision Closest points at t t assumed as those with largest depth penetration at t. Needs to store previous positions. Usually done for numerical integration anyway. 5

Collision Resolution We now have a mean to estimate time of collision, contact points and contact normal. We still have to correct the position and orientation of the colliding objects 6

Inelastic collisions energy is not preserved. Objects stop in place, stick together, etc. are easy to implement Backing out or stopping process. Elastic collisions Types of Collisions Energy is fully preserved. e.g. (ideal) billiard balls. More difficult to calculate. Magnitude of resulting velocities 7

Linear velocity Setting: objects A and B, resp. masses m A and m B, and initial velocity v A and v B. Unit collision normal n, and the contact point P n P v A+ v A v B v B+ 8

Instant impulses We can solve the collision by using an impulsebased technique. At collision time we apply an impulse on each object at P in the direction n ( n for one of the object). Pushing the two objects apart. The impulse magnitude: j. Velocity is then changed accordingly from v to v +. n impulse B A P impulse A B v A+ v A v B v B+ 9

Reminder: Impulses The rate of change of the momentum, i.e. a force delivered in an instant: F t = p = m(v t + t v(t)) τ t = L = I(ω t + t ω(t)) Momentum is always conserved: m A v A (t + t) + m B v B (t + t) = m A v A (t) + m B v B (t) And so is energy: E Kt t + t + E P t + t + E Kr t + t = E Kt t + E P t + E Kr (t) + E O 10

Linear velocity By conservation we get: m A v A + j A n = m A v A+ m B v B j B n = m B v B+ And explicitly for the velocities: v A+ = v A + j A m A n v B+ = v B j B m B n 11

Coefficient of Restitution To model the elasticity of a collision we define the coefficient of restitution C R of the collision. It describes the ratio of speeds after and before collision along the collision normal C R = v A+ v B+ n v A v B n C R = 1: ideal elastic collision (E k is conserved) C R < 1: inelastic collision (loss of velocity). C R = 0: the objects stick together. 12

Velocity Correction We also know that the velocities before and after collision relate with the coefficient of restitution C R = v A+ v B+ n v A v B n So we have j A = (1 + C R) v A v B n 1 + 1 m A m B j B = (1 + C R) v A v B n 1 + 1 m A m B 13

Velocity Correction We can finally calculate the outgoing velocities 7.1 v A+ = v A + j A m A n v B+ = v B j B m B n Larger mass difference less velocity change. 14

Angular Velocity When the normal is off the center of rotation of the objects, the collision also produces a rotation of the two objects. n ω A (t) P ω B (t) v A (t) v B (t) 15

Angular velocity Handling rotational collision similarly to linear collision. The impulse factor j is adapted accordingly. If one or both objects are rotating, the rotational velocity is added to the general velocity: v A = v A + ω A r A v B = v B + ω B r B where ω are the angular velocities and r the displacement from the center of rotation to the points of contact. 16

Angular velocity The coefficient of restitution equation is adapted accordingly: C R = v A+ v A v B+ v B n n This coefficient is used for further calculation of the linear velocity through the updated j A and j B 17

Angular velocity By conservation of angular momentum: I A ω A + r A j n = I A ω A+ I B ω B r B (j n) = I B ω B+ And we get: ω A+ = ω A + I A 1 (r A j n ) ω B+ = ω B I B 1 (r B j n ) 18

Angular velocity Generalizing the case of linear, the updated factor j: j = (1 + C R ) v A v B n 1 + 1 + I m A m 1 A r A n r A + I 1 B r B n r B n B 19

Angular velocity With this updated factor j, we calculate the outgoing angular velocities ω A+ = ω A + I A 1 (r A j A n ) ω B+ = ω B I B 1 (r B j B n ) This factor is also used to calculate the outgoing linear velocities (same as linear resolution): v A+ = v A + j A m A n v B+ = v B j B m B n 20

Angular velocity from Linear Velocity Two colliding non-rotating objects can create rotation. Is it creating angular momentum from linear momentum? No! Both momentums are conserved, and are separable entities. Angular momentum is relative to a point and measures the entire system. Though neither object rotates around its COM, the system has angular momentum around the mutual COM. COM 21

The full algorithm: Collision resolution Run collision detection to find contact point(s) and contact normal. Calculate linear and angular velocities at these contact points. Use coefficients of restitution and conservation of momentum to determine the impulses to apply. Solve for velocities using the impulses. 7.2 22

Resting contact Our resolution system is theoretically complete. Some special cases can be handled more efficiently. We can have resting contacts between objects For example, a box colliding with on the floor. the floor theoretically moves down, but is assumed stationary, because of theoretically very large mass. 23

Resting contact In our current framework, a box sitting on the floor may jitter around the surface. 24

Resting contact A resting contact occurs when the relative velocity of the two objects along the normal is null (or smaller than some tolerance). One solution: to artificially reduce the coefficient of restitution when we are in that case. Typically linearly dependent on the relative velocity or directly set to zero. after resolution the two objects will have a null relative velocity the box sticks to the unmoving floor. 25

Friction In practice, there is friction between two objects when in contact. Static friction: relatively stationary. Kinetic friction: moving relatively to each other. Rolling friction: is usually ignored in game physics. We can add the friction force in our previous equations using impulses. 26

Friction The friction acts in the tangential plane of the collision normal and resists the movement t = n v A v B n t n v A v B v B (t) v A (t) where the vectors are normalized 27

Kinetic Friction The velocity equations become: v A+ = v A + j A(n + μ k t) m A v B+ = v B j B(n + μ k t) m B ω A+ = ω A + I A 1 (r A j (n + μ k t) ) ω B+ = ω B I B 1 (r B j (n + μ k t) ) 28

Static Friction For small relative velocity, static friction is used. The friction impulses need to be adjusted. When will objects break off? The tangential direction may be undetermined (collision normal and relative velocity parallel) Alternative techniques should be used. 29

End of Collision resolution Next Soft-body physics