Physics Simple – Pong Medium – Rigid bodies F = ma Circles, spheres, rectangles for collisions Complex – Fluids, clothings, explosions, hair.

Slides:



Advertisements
Similar presentations
Uniform circular motion: examples include
Advertisements

Stop Faking It! Force & Motion.
Forces and Motion. Balanced and Unbalanced Forces Net Force= the overall force acting on an object when all of the individual forces are added together.
Chapter 4 Forces in One Dimension
Force Force is a push or pull on an object The object is called the System Force on a system in motion causes change in velocity = acceleration Force is.
Problem Solving For Conservation of Momentum problems: 1.BEFORE and AFTER 2.Do X and Y Separately.
Applications of Newton’s Laws
Phy 211: General Physics I Chapter 6: Force & Motion II Lecture Notes.
Various systems of coordinates Cartesian Spherical Cylindrical Elliptical Parabolic …
Physics 2211: Lecture 38 Rolling Motion
UNC Chapel Hill S. Redon - M. C. Lin Rigid body dynamics II Solving the dynamics problems.
Projectile Motion. Horizontal and Vertical Motion  Position, velocity and acceleration are vectors.  These vectors can be separated into components.
Circular Motion and Other Applications of Newton’s Laws
Chapter 8 Rotational Equilibrium and Rotational Dynamics.
How does the kinetic model develop a root mean square velocity? What is root mean square? Half the class average the numbers below, square the average,
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.
Physics. Session Particle Dynamics - 5 Session Objective 1.Circular motion 2.Angular variables 3.Unit vector along radius and tangent 4.Radial and tangential.
Physics Chapter 6 Forces. Newton’s Laws of Motion 1 st Law (Law of inertia) –An object moving at constant velocity keeps moving at that velocity unless.
Unit 2 Forces & Motion.
Spring Topic Outline for Physics 1 Spring 2011.
Forces 1 Dynamics FORCEMAN. What causes things to move? Forces What is a force? A push or a pull that one body exerts on another. 2.
Physics I Honors Specific Forces Centripetal Force.
Forces Continued Terms that you need to know. Forces Continued In most cases, an object has multiple forces working on it (e.g. gravity, normal, friction)
Newton’s Law of Gravitation. Newton concluded that gravity was a force that acts through even great distances Newton did calculations on the a r of the.
Physics Midterm Review Terms - Measurements time elapsed = duration of an event – there is a beginning, a middle, and an end to any event. distance.
Gravity Equation F = force of gravity G = gravitational constant (6* ) M 1 = mass of body 1 M 2 = mass of body 2 S 2 = distance between.
Momentum and Energy ISCI “Inertia” in motion 2.Momentum = (mass) x (velocity) 3.Greater the mass > Inertia > momentum of the object Objects in.
Dynamics Forces & Motion. Characteristics of Force A force acting on an object will either: a. change the object’s motion b. cause a deformation in the.
Acceleration is equal to Δv/Δt. Velocity is a vector and there are two ways a vector can be changed: by changing magnitude or by changing direction.
Chapter 7 Rotational Motion and the Law of Gravity
Circular Motion Chapter 9. Circular Motion Axis – is the straight line around which rotation takes place. Internal Axis - is located within the body of.
Circular Motion A brief intro.. Uniform Circular Motion UCM is the movement of an object or particle trajectory at a constant speed around a circle with.
Circular Motion Uniform circular motion: examples include Objects in orbit (earth around the sun Driving a car around a corner Rotating a ball around on.
Uniform Circular Motion. Motion of an object moving in a circle at constant speed. Motion of an object moving in a circle at constant speed. The linear.
NEXT Chapter 3 Newton’s Law Newton’s Laws  Newton’s First Law  Law of Inertia  Newton’s Second Law  F = ma  Newton’s Third Law  Action Reaction.
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,
Projectile Motion Let’s Go Skydiving! Speed is the distance traveled per unit time. Velocity is an object's speed and direction of motion. Acceleration.
100 Newton's 1 st Law Newton's 2 nd Law Newton's 3 rd Law Terms & Units
Proportionality between the velocity V and radius r
Circular Motion and Gravitation
Collision Detection And Response Jae Chun KyungSoo Im Chau Vo Hoang Vu.
Computer Game Design and Development
Chapter 7: Rotational Motion and the Law of Gravity Angular Speed & Acceleration  A unit of angular measure: radian y x P r  s = r  where s,r in m,
Friction and Gravity. 1. What is friction? The force that two surfaces exert on each other when they rub against each other.
Physics The Five Force Equation Presented by Denise Jenke.
Friction, Gravity, and Elastic Forces
Forces and the Laws of Motion Chapter 4. Forces and the Laws of Motion 4.1 Changes in Motion –Forces are pushes or pullss can cause acceleration. are.
Chapter 6 and 7. momentum = mass x velocity p = mv units: kgm/s or Ns.
1 Honors Physics 1 Class 04 Fall 2013 Vectors Non-Cartesian coordinate systems Motion in multiple dimensions Uniform circular motion Applications.
1 Computer Game Physics The very basics. 2 The Basics Force F Mass m Acceleration a: a = F/m Velocity v: v = a*t Position s: s = v*t …if F is constant.
What is the deal with friction?. Friction Force that opposes the motion of objects that touch as they move past each other. 4 types of friction –Static.
Forces Chapter 12, Section 1. Forces Force – a push or a pull that acts on an object Force – a push or a pull that acts on an object A force can cause.
 Gravity is 9.8 or ~10 m/s 2  If dropped from rest: y = -½ gt 2.
Circular Motion and the Law of Universal Gravitation.
Free-Body Diagrams ForceSymbol/FormulaDescription WeightF w = mgAlways directed downward Tension ForceTPulling forces directed away from the body Normal.
Gravitational Force  Gravity= a force of attraction between objects, “pulls” objects toward each other  Law of universal gravitation= all objects in.
Welcome to Who Wants to be a Millionaire
Lecture 12 Chapter 8: Solve 2D motion problems with friction
M Friction.
Momentum And Impulse.
Projectile Motion.
Forces.
Circular Motion Uniform circular motion: examples include
Or FORCE-BODY-DIAGRAMS
Forces.
Motion in Real and Virtual Worlds
Newton’s Law.
Universal Gravitation
Force A push or pull exerted on an object..
Forces.
Presentation transcript:

Physics Simple – Pong Medium – Rigid bodies F = ma Circles, spheres, rectangles for collisions Complex – Fluids, clothings, explosions, hair

Pong Velocity is constant Vx = 0.1 Vy = 0.1 Position at time t = Px, Py Position at time t + 1 Px(t+1) = Px(t) + Vx Py(t+1) = Py(t) + Vy

Pong How do I get motion that is not diagonal? What happens when I hit a wall? Vx = -Vx (which wall?) Vy = -Vy Vx = -Vx, Vy = -Vy (when you hit a corner) What happens when I hit a paddle?

Pong - Collisions If Py Ymax, I hit a wall If Px Xmax, I scored/hit a wall Ball center compared to X1 - Cx, Y1 Radius = r r

F = ma Gravity: F = G * (M1 * M2)/D^2 G = gravitational constant, D is distance On earth, assume mass of earth is LARGE so it does not move. Acceleration due to gravity is a constant = 32 ft/sec^2 or 9.8m/sec^2 V(t) = V (0) t + ½ g t^2 Vx = Vx + 0 Vy = Vy + g → choose g to make it look good. !

Friction Friction is a function of velocity and mass Static Friction > Kinetic Friction Static: when V = 0 Kinetic: when V > 0 V = V – friction, if V > friction, else 0

Collisions (again) Detect Collision Determine time of collision (why?) Determine where objects are when they touch Determine the collision normal Determine velocity vectors after collision Determine changes in rotation (advanced:))

Circles/Spheres If the distance between 2 objects is less than sum of radii Avoid using square root (r1+r2)^2 > ((x1 – x2)^2 + (y1 – y2)^2) If N objects → O(N^2)

Other objects Collisions are rare Most of the time objects are NOT colliding Create a series of filters so that computationally expensive tests are done rarely Use a grid and only test objects in cells adjacent (touched by) to you First use bounding circles/spheres, then test further