SlideShare a Scribd company logo
1 of 12
Application of
Integration Method
RUNGE KUTTA (RK4) method in game physics(NVIDIA
PhysX)
Presented by
Golam Rabby Jewel
ID:142-15-3819
Md. Irteza Rahman
ID:133-15-3057
Outline
Introduction
Short brief to RUNGE KUTTA (RK4)
Real life application RUNGE KUTTA method
Why it is better?
Conclusion
Reference
Introduction
Numerical method is for good solution
Make a program for offloading the work.
Numerical method is for testing.
How much it be wrong
Error analysis
Finding the types of error
RANJE KUTTA (RK4)
Runge kutta RK4 is 4th order differential integration method is a complex integration
It uses in physics.
It calculate the estimation in 4 steps
Real Life Application of RK4 Method
RK4 calculates xn+1 by the following calculation,
xn+1 = xn + 1/6(K1 + 2 * K2 + 2 * K3 +K4) * h
To calculate K1, K2, K3 and K4 the following calculations are needed, please note that
the time step in this equation is represented as ‘h’:
K1 = ODE (t + x)
K2 = ODE (t + 1/2* h, x + 1/2 * K1 * h)
K3 = ODE (t + 1/2 *h, x + 1/2 * K2 * h)
K4 = ODE (t + h, x + K3 * h)
Example
A rocket that is flying through the Earth’s atmosphere. First of all we have the ODE to
calculate the acceleration:
acceleration = (rocket force + force drag) / mass
We know that acceleration is the derivative of velocity (as mentioned earlier) so using
RK4 to calculate this should be relatively straight forward:
Example
K1 = ODE (time + velocity)
K2 = ODE (time + 1/2 * timeElapsed, x + 1/2 * K1 * timeElapsed)
K3 = ODE (time + 1/2 * timeElapsed, x + 1/2 * K2 * timeElapsed)
K4 = ODE (time + timeElapsed, x + K3 * timeElapsed)
And finally, to calculate the acceleration:
accelerationn+1 = accelerationn + 1/6 (K1 + 2 * K2 + 2 * K3 +K4) * timeElapsed
Sniper shot in Battlefield
Why it is Better
This is extremely accurate comparing it with it’s previous solution
 Less risky in real life application
Reduce bug in computer game
Conclusion
RK4 Takes longer and more complex in implementation. But as a reward it gives us
extreme accurate result. Runge Kutta doesn’t end at 4, it can go even further!
Fully depends on the Task and expectation.
Reference
https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods
https://www.quora.com/What-are-the-applications-of-numerical-methods
Bourg, D. M. (2002). Physics for Game Developers. California: O’Reilly
Thank you

More Related Content

What's hot

Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
Nikhil Sharma
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
mofassair
 

What's hot (20)

Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
MILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHODMILNE'S PREDICTOR CORRECTOR METHOD
MILNE'S PREDICTOR CORRECTOR METHOD
 
Runge Kutta Method
Runge Kutta Method Runge Kutta Method
Runge Kutta Method
 
Runge kutta
Runge kuttaRunge kutta
Runge kutta
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 
Strassen's matrix multiplication
Strassen's matrix multiplicationStrassen's matrix multiplication
Strassen's matrix multiplication
 
Finite Difference Method
Finite Difference MethodFinite Difference Method
Finite Difference Method
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
Real numbers- class 10 mathematics
Real numbers- class 10 mathematicsReal numbers- class 10 mathematics
Real numbers- class 10 mathematics
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
introduction to Numerical Analysis
introduction to Numerical Analysisintroduction to Numerical Analysis
introduction to Numerical Analysis
 
Runge Kurta method of order Four and Six
Runge Kurta method of order Four and SixRunge Kurta method of order Four and Six
Runge Kurta method of order Four and Six
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Asymptotic notations
Asymptotic notationsAsymptotic notations
Asymptotic notations
 
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION
IMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATIONIMPROPER  INTEGRALS AND  APPLICATION  OF INTEGRATION
IMPROPER INTEGRALS AND APPLICATION OF INTEGRATION
 
Integration
IntegrationIntegration
Integration
 
Solution of System of Linear Equations
Solution of System of Linear EquationsSolution of System of Linear Equations
Solution of System of Linear Equations
 
Recurrence relation solutions
Recurrence relation solutionsRecurrence relation solutions
Recurrence relation solutions
 
Homogeneous Linear Differential Equations
 Homogeneous Linear Differential Equations Homogeneous Linear Differential Equations
Homogeneous Linear Differential Equations
 

More from Md. Irteza rahman Masud (7)

Application of projectile motion physics
Application of projectile motion physicsApplication of projectile motion physics
Application of projectile motion physics
 
Unity 3D, A game engine
Unity 3D, A game engineUnity 3D, A game engine
Unity 3D, A game engine
 
Simulation of vehicle polishing service
Simulation of vehicle polishing serviceSimulation of vehicle polishing service
Simulation of vehicle polishing service
 
Statistics history and applications
Statistics history and applicationsStatistics history and applications
Statistics history and applications
 
RGB and CMY based color model
RGB and CMY based color modelRGB and CMY based color model
RGB and CMY based color model
 
Implementation of finger print sensor
Implementation of finger print sensorImplementation of finger print sensor
Implementation of finger print sensor
 
History of calculus and applications
History of calculus and applications History of calculus and applications
History of calculus and applications
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

Range kutta numerical method techniques

  • 1. Application of Integration Method RUNGE KUTTA (RK4) method in game physics(NVIDIA PhysX)
  • 2. Presented by Golam Rabby Jewel ID:142-15-3819 Md. Irteza Rahman ID:133-15-3057
  • 3. Outline Introduction Short brief to RUNGE KUTTA (RK4) Real life application RUNGE KUTTA method Why it is better? Conclusion Reference
  • 4. Introduction Numerical method is for good solution Make a program for offloading the work. Numerical method is for testing. How much it be wrong Error analysis Finding the types of error
  • 5. RANJE KUTTA (RK4) Runge kutta RK4 is 4th order differential integration method is a complex integration It uses in physics. It calculate the estimation in 4 steps
  • 6. Real Life Application of RK4 Method RK4 calculates xn+1 by the following calculation, xn+1 = xn + 1/6(K1 + 2 * K2 + 2 * K3 +K4) * h To calculate K1, K2, K3 and K4 the following calculations are needed, please note that the time step in this equation is represented as ‘h’: K1 = ODE (t + x) K2 = ODE (t + 1/2* h, x + 1/2 * K1 * h) K3 = ODE (t + 1/2 *h, x + 1/2 * K2 * h) K4 = ODE (t + h, x + K3 * h)
  • 7. Example A rocket that is flying through the Earth’s atmosphere. First of all we have the ODE to calculate the acceleration: acceleration = (rocket force + force drag) / mass We know that acceleration is the derivative of velocity (as mentioned earlier) so using RK4 to calculate this should be relatively straight forward:
  • 8. Example K1 = ODE (time + velocity) K2 = ODE (time + 1/2 * timeElapsed, x + 1/2 * K1 * timeElapsed) K3 = ODE (time + 1/2 * timeElapsed, x + 1/2 * K2 * timeElapsed) K4 = ODE (time + timeElapsed, x + K3 * timeElapsed) And finally, to calculate the acceleration: accelerationn+1 = accelerationn + 1/6 (K1 + 2 * K2 + 2 * K3 +K4) * timeElapsed Sniper shot in Battlefield
  • 9. Why it is Better This is extremely accurate comparing it with it’s previous solution  Less risky in real life application Reduce bug in computer game
  • 10. Conclusion RK4 Takes longer and more complex in implementation. But as a reward it gives us extreme accurate result. Runge Kutta doesn’t end at 4, it can go even further! Fully depends on the Task and expectation.