Collisions Collision Avoidance - force fields, steer to avoid, etc.

Slides:



Advertisements
Similar presentations
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?
Advertisements

1Notes. 2 Triangle intersection  Many, many ways to do this  Most robust (and one of the fastest) is to do it based on determinants  For vectors a,b,c.
Pendulums Physics 202 Professor Lee Carkner Lecture 4 “The sweep of the pendulum had increased … As a natural consequence its velocity was also much greater.”
Physics 121 Newtonian Mechanics Lecture notes are posted on Instructor Karine Chesnel April 2, 2009.
Chapter 4 The Laws of Motion. Forces Usually think of a force as a push or pull Usually think of a force as a push or pull Vector quantity Vector quantity.
Everyday Forces Chapter 4 Section 4.
Computer graphics & visualization Collision Detection – Narrow Phase.
Holt Physics Chapter 4 Section 4 Pages
Section 6.2 Using Newton’s Laws
Physics 2.2.
Chapter 4 Physics. Section 4-1 I. Forces A. Def- a push or pull; the cause of acceleration. B. Unit: Newton Def- amt. of force when acting on a 1 kg mass.
NEWTON’S FIRST LAW Definition- An object at rest will remain at rest, or if it is moving, it will continue to move with constant velocity, unless acted.
Honors Physics Semester 1 Review PowerPoint. Distance vs Displacement Distance = magnitude only = 8m Displacement = magnitude and.
Forces. Dynamics Why do objects move like they do?
Chapter 5 The Laws of Motion. Chapter 5 Intro We’ve studied motion in terms of its position, velocity and acceleration, with respect to time. We now need.
Spring Topic Outline for Physics 1 Spring 2011.
FRICTION!.
Chapter 5 Newton’s Second Law of Motion – Force and Acceleration
Computer Assisted Laboratory Experiments in Mechanics Roman Kezerashvili New York City Technical College The City University of New York.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Collision handling: detection and response
Physically Based Modeling Let physics take over!.
3D Graphics for Game Programming Chapter XII Physics-based Simulation.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Collisions & Contact.
Physics Unit Four Forces that Affect Motion. Force A push or a pull. Measured in newtons with a spring scale. 1 newton (N) = 1 kg m/s 2 An apple weighs.
STATICS AND DYNAMICS 4TH ESO Chemistry and Physics IES AMES.
Chapter 4 Dynamics: Newton’s Laws of Motion
Objectives  Describe how the weight and the mass of an object are related.  Differentiate between actual weight and apparent weight.
1 Acceleration Is the change in speed or velocity with time for motion in a straight line so that a = ∆v/t The units are usually m/sec 2 In the equation,
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
8th Grade Physical Science
 Friction – force that opposes motion  Caused by microscopic irregularities of a surface  The friction force is the force exerted by a surface as an.
Advanced Games Development Game Physics CO2301 Games Development 1 Week 19.
Physics Section 4.4 Describe various types of forces Weight is a measure of the gravitational force exerted on an object. It depends upon the objects.
Forces - basic physics Gravity Friction - static and kinetic Viscosity
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Physics Section 4.4 Describe various types of forces Weight is a measure of the gravitational force exerted on an object. It depends upon the objects.
Procedural Animation.
Forces and Newton’s Laws of Motion
Notes: Friction Static friction (Fs) is the force that opposes initial motion between two contacting surfaces. (standing friction) When a force is applied.
Forces in Nature.
Forces - basic physics Gravity Friction - static and kinetic Viscosity
Topic 2.2 Forces and Dynamics
Or Trust in the Force Luke/Ani
Forces - basic physics Springs (Hooke’s law) Damping Gravity
Miscellaneous Forces.
Computer Animation Ying Zhu Georgia State University
Chapter III Dynamics The Net Force on a Body and Newton’s First Law
Forces and Newton’s Laws
CHAPTER 4: Systems of Particles
Wednesday January 14.
Conservation of Momentum
8th Grade Physical Science
8th Grade Physical Science
FORCE and Newton’s Laws of Motion
Still talking about things with constant velocities
Basic Biomechanics, (5th edition) by Susan J. Hall, Ph.D.
Systems of Particles.
Impulse-Momentum Principle
PHYS 1443 – Section 501 Lecture #19
Forces Chapter 4.
ENGINEERING MECHANICS
Physically Based Animation and Modeling
Computer Animation Algorithms and Techniques
Forces.
Some Particular Forces
Forces and Newton’s Laws of Motion
Free body diagrams.
Static and Kinetic Friction
Presentation transcript:

Collisions Collision Avoidance - force fields, steer to avoid, etc. - as in flocking Collision Detection - calculating when objects overlap - during a time interval Collision Response - computation v. accuracy - back up time v. after-the-fact

Point-Plane Collision - Detect Collision Every time step, see if point is one “wrong” side of plane Detect collision by planar equation if a*x+b*y+c*z +d < 0 => collision Either back time up to point of collision and go from there Or Respond to collision only at time steps d1+d2 d1 d2 T = t + Dt*d1/(d1+d2)

Kinematic Response Negate velocity component in direction of normal v’ = v - 2*(v.N) N v N (v.N) N

Penalty Method F = k*d d Spring with zero rest length

Testing Planar Polyhedra Point inside a convex/concave polyhedron test Edge-plane intersection Temporal aliasing

Swept Volumes Compute motion of one relative to other Compute swept volume Determine if other object intersects swept volume Tractable only for simple motion

Impulse Force of Collision J = F * Dt J = F * Dt = M*a*Dt = M*Dv = D (M*v) = DP (Notation: J = j*N) v+rel = -e*v -rel Effect of collision has linear and angular components

Relative velocity Determine contact normal AxB A B Velocity of a point (pA (t)) = linear + angular velocities = vA(t) + wA (t) X rA Relative velocity is difference of velocity of 2 points of contact

Update Velocities after Collision v+A = v - A + j*n/M A v+B = v - B + j*n/M B w + A = w - A + I -1A(t)*(r A x j*n) w + B = w - B + I -1 B(t)*(r B x j*n)

Computing Impulse v+rel = -e*v -rel pA (t)) = vA(t) + wA (t) X rA v+rel = n* (p+A(t) - p+B(t)) v+rel = n * (v+A(t) + w+A(t) x r A -v+B(t) - w+B(t) x rB)

Computing Impulse Forces Given: two points of contact and normal of contact Compute velocities of points of contact: va, vb Compute relative velocities in direction of normal If Vrelative > threshold // actually colliding Compute j PA += J PB -= J LA += rA x J LB -= rB x J Else if Vrelative < -threshold, then resting contact Else they are moving away from each other

Other Forces Gravity Friction Viscosity Springs (Hooke’s law)

Friction Supporting object Static friction Fs = us * FN Fs Resting contact F Normal force FN

Friction Supporting object Fk = uk * FN Kinetic friction Fk v Resting contact F FN Normal force Static friction Fs = us * FN

Gravity Fgravity = G*m1*m2/r2 a object= F/m object = G*mearth/r2earth = 32 ft/s2 = 9.8 m/s2

Viscosity Fvis = -K*n*v K - depends on shape of object n - depends on properties of liquid K = 6*p*r For spherical object: Terminal velocity - viscosity and gravity balance m*g = 6*p*r*n*v

Springs (Hooke’s law) Spring’s rest length: exerts zero force Fspring = kspring * (x - xrest) x xrest F x F

Spring Mesh Edges => springs Internal springs to stabilize shape

Damping Calm down spring oscillations Fdamping = - kdamping * v F = (x’ - xrest) * kspring - v * kdamper

Forces - Recap Based on position: springs, gravity, wind, Based on velocity: viscosity, dampers, Based on object interactions: collisions, friction Give rise to accelerations