Introduction to Game Physics

Slides:



Advertisements
Similar presentations
The four kinematic equations which describe an object's motion are:
Advertisements

Real-Time Game Physics
Rigid Body Dynamics Jim Van Verth
POSITION AND DISPLACEMENT A particle travels along a straight-line path defined by the coordinate axis s. The position of the particle at any instant,
L-4 constant acceleration and free fall (M-3)
INTRODUCTION & RECTILINEAR KINEMATICS: CONTINUOUS MOTION (Sections 12
Free Fall Chapter 2 Section 3. Free Fall  Free Fall – An object in free fall falls at a constant acceleration towards the surface of a planet neglecting.
Free Fall Chapter 2 Section 3.
Projectile Motion Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Physics of Technology—PHYS.
Introduction What is this ? What is this ? This project is a part of a scientific research in machine learning, whose objective is to develop a system,
Computer-Based Animation. ● To animate something – to bring it to life ● Animation covers all changes that have visual effects – Positon (motion dynamic)
Chapter 4: Accelerated Motion in a Straight Line
2D Physics and Camera Systems For CSE 3902 By: Matt Boggus.
Newton’s Third Law of Motion
The four kinematic equations which describe an object's motion are:
Acceleration: the rate of change of velocity with respect to time a avg = Δv/Δt = (v f –v i )/(t f -t i ) Notice how this form looks similar to that of.
Notes and Explanations
INTRODUCTION & RECTILINEAR KINEMATICS: CONTINUOUS MOTION Today’s Objectives: Students will be able to: 1.Find the kinematic quantities (position, displacement,
Introduction : In this chapter we will introduce the concepts of work and kinetic energy. These tools will significantly simplify the manner in which.
Displacement Speed and Velocity Acceleration Equations of Kinematics with Constant A Freely Falling Bodies Graphical Analysis of Velocity and Acceleration.
Project 6 Tumbling Cube Fri, Nov 21, 2003 Due Mon, Dec 8, 2003.
References: Wikipedia PHYSICS + VECTORS.  Why physics?  Good for every game developer to know.  Physics formulae are often vector-based  A good chance.
Why is it so hard to get rubbish in the bin?
Physics The study of physical forces and qualities: the scientific study of matter, energy, force, and motion, and the way they relate to each other The.
Physics + Vectors References: xyz. Variable frame rates (review) Two options for handling it: – Option1: Cap frame rates When moving / rotating express.
Accelerated Motion. is changing either the speed or direction, or both, of motion. Acceleration is the rate of change of velocity, in other words, how.
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.
Objectives: Evaluate the difference between velocity and acceleration. Solve simple acceleration problems in one dimension.
Balanced & Unbalanced Forces ► More Force = more Acceleration ► More Mass = more Force needed! Newton’s Second Law of Motion says: “To move a mass, you.
4.3 Free Fall and the Acceleration due to Gravity
Force and Motion. Prior Concepts Related to Forces PreK-2 Forces are pushes and pulls that change the motion of an object. Forces are required to change.
4.3 Velocity Speed is a description of how fast an object moves; velocity is how fast and in what direction it moves.
2D Physics and Camera Systems
Chapter 11 Motion.
Day 2 UNIT 1 Motion Graphs x t Lyzinski Physics.
Introduction & Rectilinear Kinematics:
Balanced & Unbalanced Forces
WHAT IS POSITION?. WHAT IS POSITION? WHAT IS POSITION? LOCATION RELATIVE TO A REFERENCE POINT (FRAME OF REFERENCE)
The horizontal and vertical components of a projectile in motion depend upon the initial velocity. True False.
Linear Kinematics of Human Movement
A ball is rolling along a flat, level desk. The speed of the ball is 0
Mechanics of Movement.
Not enough information
FORCE and MOTION Unit 1.
Velocity.
Describing Motion.
CIS 488/588 Bruce R. Maxim UM-Dearborn
Linear Kinematics of Human Movement
Chapter 11: Motion and Speed
Kinematics Vocabulary
Newton’s first law This lesson introduces newton’s first law: an object at rest will remain at rest, and an object in motion will remain in motion at.
Motion in One Dimension
3 Linear Motion Speed Velocity Acceleration Free Fall Dr. Jie Zou
4.1 Describing Motion Our goals for learning:
Vectors and Calculus.
Kinematics in one Dimension: Uniform motion graphs
Kinematics of Particles
RECTILINEAR KINEMATICS: CONTINUOUS MOTION
Newton’s first law This lesson introduces newton’s first law: an object at rest will remain at rest, and an object in motion will remain in motion at.
Animation Lecture 17 Wed, Oct 3, 2007.
Basics of Linear Motion
RECTILINEAR KINEMATICS: CONTINUOUS MOTION
Forces (Part the First)
Engineering Mechanics
Acceleration due to gravity
Do Now: What is acceleration? Provide a real life example of an object in the process of acceleration.
Table of Contents 43 4B1 Acc. In Circular Motion (p72)
Newton’s First Law & Linear Motion
Putting all the Graphs Together
Presentation transcript:

Introduction to Game Physics 1

Game Physics Not trying to build a perfect physical model Most things can be approximated assuming Newtonian physics and rigid bodies Use discrete simulation (constant step) techniques

Why Physics The Human Experience Real-world motions are physically-based Physics can make simulated game worlds appear more natural Makes sense to strive for physically-realistic motion for some types of games Emergent Behavior Physics simulation can enable a richer gaming experience

Physics of Motion Terms Position The vector indicating the location of a point relative to the coordinate system’s origin Velocity The rate of change of the position of an object Acceleration The rate at which the velocity of an object changes with time

Position and Velocity Where is the object at time t (using pixels)? Computation position(t) += velocity * dt Where dt is the amount of time passed since the last Update (either calculated programmatically or via GameTime)

Acceleration Where is the objects rate of change (using pixels)? Computation velocity += acceleration * dt Where dt is the amount of time passed since the last Update (either calculated programmatically or via GameTime)

Friction and Damping With no acceleration, velocity will only change based upon user input To slow objects down without acceleration * after updating position Computation velocity *= rateOfDecay Where 0.0 < rateOfDecay < 1.0

Clamping Keeping a value within a specified range Computation Prevent the object(s) from traveling off-screen Prevent the object(s) from moving too fast Computation float value = MathHelper.Clamp ( valueToClamp, minimumValue, maximumValue);

Other Physics Issues User control for jumping height Input tracking Sequence on keys/buttons\controller’s currentState and previousState State driven JumpingState (velocity can continue to decrease) FallingState (velocity can only decrease) Stuck on ground plane Ground Plane (y > upperLimit could trigger player Death) Grounded state doesn’t apply gravity but can transition to falling/jumping

Simple 2D Physics By Example Demonstration

?

References Maxim, Bruce R. Computer Game Physics