SlideShare a Scribd company logo
Game Physics
Game Design and Development
By Hafiz Ammar Siddiqui
4
Game Physics
• Game physics adds laws of physics into a game
• Close approximation of real physics which is implemented with discrete values
• Use of numerical methods using actual physics equations to get the results close to physics
we observe in real life
• Update the state of objects based on physical calculations
• Compute forces and motion of objects in a scene
• Compute mechanical interactions between objects in a scene
• Physics inside a game is usually handled by a physics engine
Basic Physics Terms
• Speed: Rate of change of position with time (scalar)
• Velocity: Rate of change of position with time (vector)
• Acceleration: Rate of change of velocity with time (vector)
• Mass: Amount of matter contained in a body (scalar)
• Force: That changes or tends to change the state of rest or motion of a body (vector)
• Torque: Force that causes rotation of an body around its axis (vector)
• Momentum: Quantity of motion in a moving body or mass in motion (vector)
Mechanics
Statics
Kinematics
Kinetics
Mechanics (Classical Mechanics)
• Branch of physics that is concerned with the motion of bodies, its causes and its effects
• Discipline of physics that quantifies motion, and explain it in terms of forces, energies
and momentums
• Study of motion of bodies when subjected to forces or displacements, and their
subsequent effects on environment
• Mechanics is classified into three main types
• Statics
• Kinematics
• Kinetics
• Study of a body in the state of motion
(without considering the forces causing
the motion)
• There is acceleration in kinematics
• Does not consider mass, force and torque
• Deals with basic geometry of motion
Kinematics
Mechanics
• Study of a body in the state of motion
(considering the forces causing motion)
• There is acceleration in kinetics
• Considers mass, force and torque
• Deals with cause of motion
• Often referred as dynamics
Kinetics
Mechanics
• Study of a body in the state of static equilibrium (rest or in uniform motion)
• There is no acceleration in statics
Statics
Mechanics
Collision Collision Detection
Collision Response
Collision
• A process in which two or more bodies intersect (overlap) with each other or are about
to intersect (overlap) with each other
• Occurs when distance between two or more bodies falls below a threshold value
• In games, bounding volumes (colliders) are used to define the shape of a body for
collision based calculations. A body can have multiple bounding volumes in union.
Box bounding volume Polygon bounding volume Multiple box bounding volumes in union
• Process of determining whether two or more bodies have run into each other or not
• Detects the intersection of two or more bodies or their bounding volumes
• Finds out if two or more bodies or their respective bounding volumes are overlapping
with each other or not
• Computational geometry problem involving the calculation of whether and where two or
more bodies have collided or they are about to collide
• In games, its divided into two basic types
• Discrete Collision: Determine whether bodies are colliding at current time or not
• Continuous Collision: Predict the exact point and time of collision between bodies
Collision Detection
Collision
Collision Detection
Collision
No collision at current time No collision at current time
but upcoming collision in future
Collision at current time Collision at current time
Before
After
Continuous CollisionDiscrete Collision
• How bodies will react to collision
• Simulate what happens when a collision is detected between bodies
• Estimate using laws of physics that what will happen after a collision
• Determines if position, rotation or shape of collided bodies will change or not depending
on the collision
• How motion and shape of bodies will change after they have collided with each other
with respect to their properties
• Process of calculating the resultant forces and accelerations of each body with respect to
its mass after collision
Collision Response
Collision
Object Physics Rigid Body
Soft Body
• A body whose points remain at fixed distances from one another
• It is a dimension based non-deformable body
• Distance between any two points of a rigid body remains constant in time regardless of
external forces exerted on it
• Rigid body translates or rotates as a whole, and there is no relative translation or rotation
among the particles of a rigid body
• It does not change its shape during its motion or when it encounters any collision
• Movement is composed of Linear Trajectory Translation and Relative Rotation
• Examples of rigid body could be a solid brick, stone or rock if we ignore any type of
destruction of respective body
Rigid Body
Object Physics
Rigid Body
Object Physics
Rigid body linear trajectory translation (origin movement) and relative rotation (orientation rotation)
• A body whose points can change their distances from one another
• It is a dimension based deformable body
• Distance between any two points of a soft body changes with respect to the external
forces exerted on it
• Soft body can stretch or compress in any direction, and there is relative translation or
rotation among the particles of a soft body
• It can change its shape during its motion or when it encounters any collision
• Examples of soft body could be a rubber, fabric or jelly if we ignore any type of cutting of
the respective body
Soft Body
Object Physics
Soft Body
Object Physics
Soft body deformation by force
References
• Physics for Game Developers - David M Bourg, Bryan Bywalec
• Game Physics Engine Development - Ian Millington

More Related Content

What's hot

Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
Shaan Alam
 
2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)
Hafiz Ammar Siddiqui
 
Phases of game development
Phases of game developmentPhases of game development
Phases of game development
Victor Terekhovskyi
 
Video Game Design: Art & Sound
Video Game Design: Art & SoundVideo Game Design: Art & Sound
Video Game Design: Art & Sound
Kevin Duggan
 
Introduction to Game Design
Introduction to Game DesignIntroduction to Game Design
Introduction to Game Design
Martin Sillaots
 
Game Balancing
Game BalancingGame Balancing
Game Balancing
Martin Sillaots
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
Seth Sivak
 
Game engines and Their Influence in Game Design
Game engines and Their Influence in Game DesignGame engines and Their Influence in Game Design
Game engines and Their Influence in Game DesignPrashant Warrier
 
Game Design Process
Game Design ProcessGame Design Process
Game Design Process
Martin Sillaots
 
Unreal Engine Beginner Workshop Slides
Unreal Engine Beginner Workshop SlidesUnreal Engine Beginner Workshop Slides
Unreal Engine Beginner Workshop Slides
Merlin Cheng
 
3D Games
3D Games3D Games
Introduction To 3D Gaming
Introduction To 3D GamingIntroduction To 3D Gaming
Introduction To 3D Gaming
Clint Edmonson
 
Game Design Document
Game Design DocumentGame Design Document
Game Design Document
Kika Syafii
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game development
Gaetano Bonofiglio
 
First-person Shooters
First-person ShootersFirst-person Shooters
First-person Shooters
Minh Múi Mít
 
Game development life cycle
Game development life cycleGame development life cycle
Game development life cycle
Sarah Alazab
 
Game Design Fundamentals
Game Design FundamentalsGame Design Fundamentals
Game Design Fundamentals
Intelligent_ly
 
A Brief Guide to Game Engines
A Brief Guide to Game EnginesA Brief Guide to Game Engines
A Brief Guide to Game Engines
David Parsons
 
Comp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface DesignComp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface Design
Mark Billinghurst
 
Level design and devlopment part 1 introduction to level design
Level design and devlopment part 1  introduction to level designLevel design and devlopment part 1  introduction to level design
Level design and devlopment part 1 introduction to level design
Durgesh Pandey
 

What's hot (20)

Introduction to Game Development
Introduction to Game DevelopmentIntroduction to Game Development
Introduction to Game Development
 
2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)2-Game Design (Game Design and Development)
2-Game Design (Game Design and Development)
 
Phases of game development
Phases of game developmentPhases of game development
Phases of game development
 
Video Game Design: Art & Sound
Video Game Design: Art & SoundVideo Game Design: Art & Sound
Video Game Design: Art & Sound
 
Introduction to Game Design
Introduction to Game DesignIntroduction to Game Design
Introduction to Game Design
 
Game Balancing
Game BalancingGame Balancing
Game Balancing
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
Game engines and Their Influence in Game Design
Game engines and Their Influence in Game DesignGame engines and Their Influence in Game Design
Game engines and Their Influence in Game Design
 
Game Design Process
Game Design ProcessGame Design Process
Game Design Process
 
Unreal Engine Beginner Workshop Slides
Unreal Engine Beginner Workshop SlidesUnreal Engine Beginner Workshop Slides
Unreal Engine Beginner Workshop Slides
 
3D Games
3D Games3D Games
3D Games
 
Introduction To 3D Gaming
Introduction To 3D GamingIntroduction To 3D Gaming
Introduction To 3D Gaming
 
Game Design Document
Game Design DocumentGame Design Document
Game Design Document
 
Introduction to game development
Introduction to game developmentIntroduction to game development
Introduction to game development
 
First-person Shooters
First-person ShootersFirst-person Shooters
First-person Shooters
 
Game development life cycle
Game development life cycleGame development life cycle
Game development life cycle
 
Game Design Fundamentals
Game Design FundamentalsGame Design Fundamentals
Game Design Fundamentals
 
A Brief Guide to Game Engines
A Brief Guide to Game EnginesA Brief Guide to Game Engines
A Brief Guide to Game Engines
 
Comp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface DesignComp4010 Lecture10 VR Interface Design
Comp4010 Lecture10 VR Interface Design
 
Level design and devlopment part 1 introduction to level design
Level design and devlopment part 1  introduction to level designLevel design and devlopment part 1  introduction to level design
Level design and devlopment part 1 introduction to level design
 

Similar to 4-Game Physics (Game Design and Development)

Clinical biomechanics
Clinical biomechanicsClinical biomechanics
Clinical biomechanicsravi2711
 
biomechanics and mechanics 1.pptx
biomechanics and mechanics 1.pptxbiomechanics and mechanics 1.pptx
biomechanics and mechanics 1.pptx
FrancisEtseyDushie
 
Glossary of spinal deformity biomechanical terms
Glossary of spinal deformity biomechanical termsGlossary of spinal deformity biomechanical terms
Glossary of spinal deformity biomechanical terms
Hasan Arif Raihan
 
Introduction to kinesiology (Biomechanics- Physiotherapy)
Introduction to kinesiology (Biomechanics- Physiotherapy) Introduction to kinesiology (Biomechanics- Physiotherapy)
Introduction to kinesiology (Biomechanics- Physiotherapy)
vandana7381
 
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptxSYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
Giridhar D
 
class-11, ch-6 ( system of particles and rotational motion).pptx
class-11, ch-6 ( system of particles and rotational motion).pptxclass-11, ch-6 ( system of particles and rotational motion).pptx
class-11, ch-6 ( system of particles and rotational motion).pptx
bablivashisht
 
Basic biomechanics
Basic biomechanicsBasic biomechanics
Basic biomechanics
Mumbai University
 
bio mechanics.pptx
bio mechanics.pptxbio mechanics.pptx
bio mechanics.pptx
muthukrishnan188
 
Kinetic Concepts for Analyzing Human Motion. (Biomechanics)
Kinetic Concepts forAnalyzing Human Motion. (Biomechanics)Kinetic Concepts forAnalyzing Human Motion. (Biomechanics)
Kinetic Concepts for Analyzing Human Motion. (Biomechanics)
Muhammadasif909
 
Basics Of Engineering
Basics Of EngineeringBasics Of Engineering
Basics Of Engineering
prudhvi rahul
 
Basics Of engineering
Basics Of engineeringBasics Of engineering
Basics Of engineering
prudhvi rahul
 
#Engineering Mechanics Previous Question papers two marks questions and answers
#Engineering Mechanics Previous Question papers two marks questions and answers#Engineering Mechanics Previous Question papers two marks questions and answers
#Engineering Mechanics Previous Question papers two marks questions and answers
MOKSHIT TECH
 
law of mechanics
 law of mechanics law of mechanics
law of mechanics
Rai University
 
Physic Module PPT
Physic Module PPTPhysic Module PPT
Physic Module PPT
boysarena
 
Biomechanics 3 2014
Biomechanics 3 2014Biomechanics 3 2014
Biomechanics 3 2014
Kerry Harrison
 
Digital content of applied mechanics
Digital content of applied mechanics Digital content of applied mechanics
Digital content of applied mechanics
Warish Khan
 
Biomechanics in sports
Biomechanics in sportsBiomechanics in sports
Laws of mechanics
Laws of mechanicsLaws of mechanics
Laws of mechanics
Yasir Hashmi
 

Similar to 4-Game Physics (Game Design and Development) (20)

Clinical biomechanics
Clinical biomechanicsClinical biomechanics
Clinical biomechanics
 
biomechanics and mechanics 1.pptx
biomechanics and mechanics 1.pptxbiomechanics and mechanics 1.pptx
biomechanics and mechanics 1.pptx
 
Glossary of spinal deformity biomechanical terms
Glossary of spinal deformity biomechanical termsGlossary of spinal deformity biomechanical terms
Glossary of spinal deformity biomechanical terms
 
Introduction to kinesiology (Biomechanics- Physiotherapy)
Introduction to kinesiology (Biomechanics- Physiotherapy) Introduction to kinesiology (Biomechanics- Physiotherapy)
Introduction to kinesiology (Biomechanics- Physiotherapy)
 
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptxSYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
SYSTEM OF PARTICLES AND ROTATIONAL MOTION.pptx
 
class-11, ch-6 ( system of particles and rotational motion).pptx
class-11, ch-6 ( system of particles and rotational motion).pptxclass-11, ch-6 ( system of particles and rotational motion).pptx
class-11, ch-6 ( system of particles and rotational motion).pptx
 
Basic biomechanics
Basic biomechanicsBasic biomechanics
Basic biomechanics
 
bio mechanics.pptx
bio mechanics.pptxbio mechanics.pptx
bio mechanics.pptx
 
Kinetic Concepts for Analyzing Human Motion. (Biomechanics)
Kinetic Concepts forAnalyzing Human Motion. (Biomechanics)Kinetic Concepts forAnalyzing Human Motion. (Biomechanics)
Kinetic Concepts for Analyzing Human Motion. (Biomechanics)
 
Basics Of Engineering
Basics Of EngineeringBasics Of Engineering
Basics Of Engineering
 
Basics Of engineering
Basics Of engineeringBasics Of engineering
Basics Of engineering
 
#Engineering Mechanics Previous Question papers two marks questions and answers
#Engineering Mechanics Previous Question papers two marks questions and answers#Engineering Mechanics Previous Question papers two marks questions and answers
#Engineering Mechanics Previous Question papers two marks questions and answers
 
law of mechanics
 law of mechanics law of mechanics
law of mechanics
 
Physic Module PPT
Physic Module PPTPhysic Module PPT
Physic Module PPT
 
Biomechanics 3 2014
Biomechanics 3 2014Biomechanics 3 2014
Biomechanics 3 2014
 
Digital content of applied mechanics
Digital content of applied mechanics Digital content of applied mechanics
Digital content of applied mechanics
 
Biomechanics in sports
Biomechanics in sportsBiomechanics in sports
Biomechanics in sports
 
Laws of mechanics
Laws of mechanicsLaws of mechanics
Laws of mechanics
 
Force
ForceForce
Force
 
Biomechanics 3
Biomechanics 3Biomechanics 3
Biomechanics 3
 

More from Hafiz Ammar Siddiqui

10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
Hafiz Ammar Siddiqui
 
9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...
Hafiz Ammar Siddiqui
 
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
Hafiz Ammar Siddiqui
 
9-Game Design (Game Development - UMT Spring 2017/2018)
9-Game Design (Game Development - UMT Spring 2017/2018)9-Game Design (Game Development - UMT Spring 2017/2018)
9-Game Design (Game Development - UMT Spring 2017/2018)
Hafiz Ammar Siddiqui
 
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
Hafiz Ammar Siddiqui
 
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
Hafiz Ammar Siddiqui
 
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
Hafiz Ammar Siddiqui
 
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
Hafiz Ammar Siddiqui
 
6-Animation in Game (Game Development - UMT Spring 2017/2018)
6-Animation in Game (Game Development - UMT Spring 2017/2018)6-Animation in Game (Game Development - UMT Spring 2017/2018)
6-Animation in Game (Game Development - UMT Spring 2017/2018)
Hafiz Ammar Siddiqui
 
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
Hafiz Ammar Siddiqui
 
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
3-Graphics in Game (Game Development - UMT Spring 2017/2018)3-Graphics in Game (Game Development - UMT Spring 2017/2018)
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
Hafiz Ammar Siddiqui
 
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
1-Introduction to Software Engineering (Object Oriented Software Engineering ...1-Introduction to Software Engineering (Object Oriented Software Engineering ...
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
Hafiz Ammar Siddiqui
 
1-Introduction (Game Development - UMT Spring 2017/2018)
1-Introduction (Game Development - UMT Spring 2017/2018)1-Introduction (Game Development - UMT Spring 2017/2018)
1-Introduction (Game Development - UMT Spring 2017/2018)
Hafiz Ammar Siddiqui
 

More from Hafiz Ammar Siddiqui (13)

10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
10-Software Project Management (Object Oriented Software Engineering - BNU Sp...
 
9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...9-Software Verification and Validation (Object Oriented Software Engineering ...
9-Software Verification and Validation (Object Oriented Software Engineering ...
 
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
 
9-Game Design (Game Development - UMT Spring 2017/2018)
9-Game Design (Game Development - UMT Spring 2017/2018)9-Game Design (Game Development - UMT Spring 2017/2018)
9-Game Design (Game Development - UMT Spring 2017/2018)
 
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
6-Software Design Reviews (Object Oriented Software Engineering - BNU Spring ...
 
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
5-Object Oriented Analysis (Object Oriented Software Engineering - BNU Spring...
 
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
4-Object Oriented Design Heuristics (Object Oriented Software Engineering - B...
 
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
3-Software Anti Design Patterns (Object Oriented Software Engineering - BNU S...
 
6-Animation in Game (Game Development - UMT Spring 2017/2018)
6-Animation in Game (Game Development - UMT Spring 2017/2018)6-Animation in Game (Game Development - UMT Spring 2017/2018)
6-Animation in Game (Game Development - UMT Spring 2017/2018)
 
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
2-Software Design (Object Oriented Software Engineering - BNU Spring 2017)
 
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
3-Graphics in Game (Game Development - UMT Spring 2017/2018)3-Graphics in Game (Game Development - UMT Spring 2017/2018)
3-Graphics in Game (Game Development - UMT Spring 2017/2018)
 
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
1-Introduction to Software Engineering (Object Oriented Software Engineering ...1-Introduction to Software Engineering (Object Oriented Software Engineering ...
1-Introduction to Software Engineering (Object Oriented Software Engineering ...
 
1-Introduction (Game Development - UMT Spring 2017/2018)
1-Introduction (Game Development - UMT Spring 2017/2018)1-Introduction (Game Development - UMT Spring 2017/2018)
1-Introduction (Game Development - UMT Spring 2017/2018)
 

Recently uploaded

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 

Recently uploaded (20)

BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 

4-Game Physics (Game Design and Development)

  • 1. Game Physics Game Design and Development By Hafiz Ammar Siddiqui 4
  • 2. Game Physics • Game physics adds laws of physics into a game • Close approximation of real physics which is implemented with discrete values • Use of numerical methods using actual physics equations to get the results close to physics we observe in real life • Update the state of objects based on physical calculations • Compute forces and motion of objects in a scene • Compute mechanical interactions between objects in a scene • Physics inside a game is usually handled by a physics engine
  • 3. Basic Physics Terms • Speed: Rate of change of position with time (scalar) • Velocity: Rate of change of position with time (vector) • Acceleration: Rate of change of velocity with time (vector) • Mass: Amount of matter contained in a body (scalar) • Force: That changes or tends to change the state of rest or motion of a body (vector) • Torque: Force that causes rotation of an body around its axis (vector) • Momentum: Quantity of motion in a moving body or mass in motion (vector)
  • 5. Mechanics (Classical Mechanics) • Branch of physics that is concerned with the motion of bodies, its causes and its effects • Discipline of physics that quantifies motion, and explain it in terms of forces, energies and momentums • Study of motion of bodies when subjected to forces or displacements, and their subsequent effects on environment • Mechanics is classified into three main types • Statics • Kinematics • Kinetics
  • 6. • Study of a body in the state of motion (without considering the forces causing the motion) • There is acceleration in kinematics • Does not consider mass, force and torque • Deals with basic geometry of motion Kinematics Mechanics • Study of a body in the state of motion (considering the forces causing motion) • There is acceleration in kinetics • Considers mass, force and torque • Deals with cause of motion • Often referred as dynamics Kinetics Mechanics • Study of a body in the state of static equilibrium (rest or in uniform motion) • There is no acceleration in statics Statics Mechanics
  • 8. Collision • A process in which two or more bodies intersect (overlap) with each other or are about to intersect (overlap) with each other • Occurs when distance between two or more bodies falls below a threshold value • In games, bounding volumes (colliders) are used to define the shape of a body for collision based calculations. A body can have multiple bounding volumes in union. Box bounding volume Polygon bounding volume Multiple box bounding volumes in union
  • 9. • Process of determining whether two or more bodies have run into each other or not • Detects the intersection of two or more bodies or their bounding volumes • Finds out if two or more bodies or their respective bounding volumes are overlapping with each other or not • Computational geometry problem involving the calculation of whether and where two or more bodies have collided or they are about to collide • In games, its divided into two basic types • Discrete Collision: Determine whether bodies are colliding at current time or not • Continuous Collision: Predict the exact point and time of collision between bodies Collision Detection Collision
  • 10. Collision Detection Collision No collision at current time No collision at current time but upcoming collision in future Collision at current time Collision at current time Before After Continuous CollisionDiscrete Collision
  • 11. • How bodies will react to collision • Simulate what happens when a collision is detected between bodies • Estimate using laws of physics that what will happen after a collision • Determines if position, rotation or shape of collided bodies will change or not depending on the collision • How motion and shape of bodies will change after they have collided with each other with respect to their properties • Process of calculating the resultant forces and accelerations of each body with respect to its mass after collision Collision Response Collision
  • 12. Object Physics Rigid Body Soft Body
  • 13. • A body whose points remain at fixed distances from one another • It is a dimension based non-deformable body • Distance between any two points of a rigid body remains constant in time regardless of external forces exerted on it • Rigid body translates or rotates as a whole, and there is no relative translation or rotation among the particles of a rigid body • It does not change its shape during its motion or when it encounters any collision • Movement is composed of Linear Trajectory Translation and Relative Rotation • Examples of rigid body could be a solid brick, stone or rock if we ignore any type of destruction of respective body Rigid Body Object Physics
  • 14. Rigid Body Object Physics Rigid body linear trajectory translation (origin movement) and relative rotation (orientation rotation)
  • 15. • A body whose points can change their distances from one another • It is a dimension based deformable body • Distance between any two points of a soft body changes with respect to the external forces exerted on it • Soft body can stretch or compress in any direction, and there is relative translation or rotation among the particles of a soft body • It can change its shape during its motion or when it encounters any collision • Examples of soft body could be a rubber, fabric or jelly if we ignore any type of cutting of the respective body Soft Body Object Physics
  • 16. Soft Body Object Physics Soft body deformation by force
  • 17. References • Physics for Game Developers - David M Bourg, Bryan Bywalec • Game Physics Engine Development - Ian Millington