Computer Game Design and Development Mathematics, Collision, and Physics Havok Destruction.

Slides:



Advertisements
Similar presentations
Real-Time Game Physics
Advertisements

Kinetics of Particles Impulse and Momentum.
ESC020: Rigid Body Mechanics
Chapter 4.2 Collision Detection and Resolution. 2 Collision Detection Complicated for two reasons 1. Geometry is typically very complex, potentially requiring.
Kinetics of Particles: Energy and Momentum Methods
Chapter 9 Linear Momentum and Collisions. Linear momentum Linear momentum (or, simply momentum) of a point-like object (particle) is SI unit of linear.
Chapter 13 – Vector Functions
CS4455 Physics Engines Maribeth Gandy Jeff Wilson Clint Doriot
Linear Momentum, Systems of Particles, and Collisions
1Notes  Demetri Terzopoulos talk: Thursday, 4pm Dempster 310.
ME Robotics Dynamics of Robot Manipulators Purpose: This chapter introduces the dynamics of mechanisms. A robot can be treated as a set of linked.
Chapter 4.2 Collision Detection and Resolution. 2 Collision Detection Complicated for two reasons 1. Geometry is typically very complex, potentially requiring.
1 Geometry A line in 3D space is represented by  S is a point on the line, and V is the direction along which the line runs  Any point P on the line.
UNC Chapel Hill S. Redon - M. C. Lin Rigid body dynamics II Solving the dynamics problems.
CSCE 590E Spring 2007 Collision Detection By Jijun Tang.
Collision Detection Michael Fuller. Overlap testing Most Common Technique Most Error Prone Test if two bodies overlap.
Physics Chapter 4: Forces and the Laws of Motion
Animation and Games Development
Spring Topic Outline for Physics 1 Spring 2011.
Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Game Physics – Part I Dan Fleck Coming up: Rigid Body Dynamics.
Chapters 10, 11 Rotation and angular momentum. Rotation of a rigid body We consider rotational motion of a rigid body about a fixed axis Rigid body rotates.
_ Linear momentum and its conservation _ Impulse and momentum _ Collisions _ Two-dimensional collisions _ Center of mass _ Systems of particles. Momentum.
CSCE 552 Spring 2009 Math, Physics and Collision Detection By Jijun Tang.
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Physically Based Modeling Let physics take over!.
A PPLIED M ECHANICS Lecture 01 Slovak University of Technology Faculty of Material Science and Technology in Trnava.
REVISION MOMENTUM. the product of an object's mass and its velocity a vector quantity with the same direction as the velocity of the object. MOMENTUM.
Concepts for Programming a Rigid Body Physics Engine Part 1 Presented by Scott Hawkins.
Force Diagrams. Some commonly used conventions: Smooth, as in “A smooth surface” or “A smooth pulley” implies that friction is ignored. Rough, as in “A.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
CSCE 552 Fall 2012 Math, Physics and Collision Detection By Jijun Tang.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
Particle A particle is an object having a non zero mass and the shape of a point (zero size and no internal structure). In various situations we approximate.
9-4 Linear Momentum Newton’s second law of motion:
Chapter 11 Angular Momentum. Angular momentum plays a key role in rotational dynamics. There is a principle of conservation of angular momentum.  In.
1 Honors Physics 1 Summary and Review - Fall 2013 Quantitative and experimental tools Mathematical tools Newton’s Laws and Applications –Linear motion.
USSC3002 Oscillations and Waves Lecture 1 One Dimensional Systems Wayne M. Lawton Department of Mathematics National University of Singapore 2 Science.
Computer Game Design and Development
CHAPTER Continuity Applications to Physics and Engineering Work: W = lim n->   i=1 n f (x i * )  x =  a b f (x) dx Moments and centers of mass:
2.1 Position, Velocity, and Speed 2.1 Displacement  x  x f - x i 2.2 Average velocity 2.3 Average speed  
1 Rotation of a Rigid Body Readings: Chapter How can we characterize the acceleration during rotation? - translational acceleration and - angular.
CS274 Spring 01 Lecture 7 Copyright © Mark Meyer Lecture VII Rigid Body Dynamics CS274: Computer Animation and Simulation.
Rigid Body Dynamics CSE169: Computer Animation
EE 460 Advanced Control and System Integration
Computer Game Design and Development Collision Detection Havok Destruction.
Rick Parent - CIS682 Rigid Body Dynamics simulate basic physics of an object subject to forces Keyframing can be tedious - especially to get ‘realism’
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
Game Programming 13 Physics in Games (cont.) 2010 년 2 학기 디지털콘텐츠전공.
Dynamics. Motion with Regard to Mass Particle Dynamics Mass concentrated in point Newton’s Equation Governs Motion f = M x.
CSCE 552 Fall 2012 Math, Physics and Collision Detection By Jijun Tang.
Particle Kinematics Direction of velocity vector is parallel to path Magnitude of velocity vector is distance traveled / time Inertial frame – non accelerating,
Linear momentum You should be able to: state the definition of momentum; state the definition of average net force in terms of momentum; state the definition.
1 10. Harmonic oscillator Simple harmonic motion Harmonic oscillator is an example of periodic motion, where the displacement of a particle from.
Advanced Computer Graphics Rigid Body Simulation
Manipulator Dynamics 1 Instructor: Jacob Rosen
CS-378: Game Technology Lecture #15: Physically Based Simulation
Lecture Rigid Body Dynamics.
EECE 478 Game Physics.
Math, Physics and Collision Detection
Chapter 4.2 Collision Detection and Resolution
Manipulator Dynamics 2 Instructor: Jacob Rosen
Find the velocity of a particle with the given position function
ENGINEERING MECHANICS
Rigid Body Dynamics (unconstrained)
Motion in Real and Virtual Worlds
10-4 Rotation with Constant Angular Acceleration
Computer Animation Algorithms and Techniques
General Principles 4/10/2019.
King Fahd University of Petroleum & Minerals
Presentation transcript:

Computer Game Design and Development Mathematics, Collision, and Physics Havok Destruction

Overlap Bisection

Limitations of Overlap Testing

Intersection Testing

Collision Approximations Minkowski Sum – sweep origin of X across Y

Bounding Volumes AABBOBB

Performance Possible collision between R and B since overlap in all axis (2 in this case) Subdivide such that on average one object in each cell.

Terrain Collision Heightmap information Look up terrain height 3 LERPs – Linear Interpretation between points – X – Z – Between x and z

Resolving Collision Gross collision & subdivide if needed Three phases – Prologue – ignore or trigger other events – Collision – point of impact, new velocities – Epilogue – destroy object, effects, damage

Particle Physics Basics Use consistent units (SI) Particles – Position (p) in 3-space, vector3 (x,y,z) = p(t) – Velocity (v) = change in position over time, V(t) – Acceleration (a) = change in velocity over time, a(t) – Force (f) = results in change in acceleration over time, F(t) = ma(t) Calculus – Derivatives and integrals go from one to another

Collision Response (frictionless)

Springs & Damping

Friction

Center of Mass

Rigid Body Collision Center of Mass Consideration

Physics Engines Commercial – Game Dynamics SDK (Havok) – Renderware Physcis – NovodeX SDK Free/Shareware – Open Dynamics Engine (ODE) – Tokamak Game Physics SDK – Newton Game Dynamics SDK

Demo