Simulation of Realistic Motion in Computer Graphics Using Runge-Kutta Methods
Main Article Content
Abstract
This article looks into the use of the fourth-order Runge-Kutta (RK4) method in realistic motion simulation within computer graphics. With dynamic animations, there is an emerging need to solve physical systems using ordinary differential equations, for which RK4 is particularly useful due to its accuracy, stability, and balanced computational cost and efficiency. We implement motion phenomena with damped spring-mass systems by changing second-order differential equations into first-order systems that can be integrated using RK4. The results are measured against Euler and Midpoint methods for assessing stability, error control, and visual smoothness. In every instance, RK4 was found to be the most accurate, stable, and free from overshoot and jitter artifacts. The method demonstrates its effectiveness in real-time animation simulation, including but not limited to simulating cloth movement, flexible body motion, and character dynamic movements through progressive simulation and case studies. Even after undergoing extensive simulation durations, RK4 repeated proved to be supremely reliable regarding energy conservation, damping precision, and fidelity. While perhaps more costly in terms of computation than the more straightforward methods, RK4 remains highly tenable with today's processing capabilities. In addition to greatly improving the physics realism in simulations, the method is commendably applicable in Unity and PhysX or Bullet visual engines. The study illustrates smooth and realistic animation with the help of RK4 while further establishing its importance as a fundamental method for motion graphics and simulation in academic research and industry use.

Citation Metrics:
Downloads
Article Details

Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
References
2. Butcher, J. C. (2008). Numerical methods for ordinary differential equations (2nd ed.). John Wiley & Sons.
3. Chapra, S. C., & Canale, R. P. (2015). Numerical methods for engineers (7th ed.). McGraw-Hill Education.
4. Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (2007). Numerical recipes: The art of scientific computing (3rd ed.). Cambridge University Press.
5. Hecker, C. (1997). Physics-based motion. In M. DeLoura (Ed.), Game programming gems (pp. 292–303). Charles River Media.
6. Fiedler, G. (2014). Physics simulation: Integrating Newton’s equations with Runge-Kutta. Gaffer on Games. https://gafferongames.com/post/integration_basics/
7. Hairer, E., Nørsett, S. P., & Wanner, G. (1993). Solving ordinary differential equations I: Nonstiff problems (2nd ed.). Springer.
8. Witkin, A., & Baraff, D. (1997). Physically based modeling: Principles and practice. SIGGRAPH Course Notes. Carnegie Mellon University.
9. Baraff, D. (1997). An introduction to physically based modeling: Rigid body simulation I—Unconstrained rigid body dynamics. Carnegie Mellon University.
10. Ferziger, J. H., & Perić, M. (2002). Computational methods for fluid dynamics (3rd ed.). Springer.
11. Kloeden, P. E., & Platen, E. (1992). Numerical solution of stochastic differential equations. Springer.
12. McKenna, P. J., & Reichel, W. (2002). Numerical methods for ordinary differential equations: Initial value problems. Springer.
13. Parent, R. (2012). Computer animation: Algorithms and techniques (3rd ed.). Morgan Kaufmann.
14. Wanner, G., & Hairer, E. (1996). Solving ordinary differential equations II: Stiff and differential-algebraic problems (2nd ed.). Springer.
15. Kass, M., & Miller, G. (1990). Rapid, stable fluid dynamics for computer graphics. ACM SIGGRAPH Computer Graphics, 24(4), 49–57. https://doi.org/10.1145/97880.97884
16. Battaglia, P. W., Pascanu, R., Lai, M., Rezende, D. J., & Kavukcuoglu, K. (2016). Interaction networks for learning about objects, relations, and physics. Advances in Neural Information Processing Systems, 29, 4502–4510.
17. Desbrun, M., Schröder, P., & Barr, A. H. (1999). Interactive animation of structured deformable objects. In Proceedings of the Conference on Graphics Interface (pp. 1–8).
18. Osher, S., & Fedkiw, R. (2003). Level set methods and dynamic implicit surfaces. Springer.
19. Sundararajan, D. (2015). Numerical methods: Design, analysis, and computer implementation of algorithms. Springer.
20. Shirley, P., Marschner, S. R., & others. (2009). Fundamentals of computer graphics (3rd ed.). A K Peters.
21. Hughes, J. F., van Dam, A., McGuire, M., Sklar, D. F., Foley, J. D., Feiner, S. K., & Akeley, K. (2013). Computer graphics: Principles and practice (3rd ed.). Addison-Wesley.
22. Wawrzynek, J. (2016). Introduction to numerical methods. University of California, Berkeley.
23. Müller, M., Heidelberger, B., Hennix, M., & Ratcliff, J. (2007). Position based dynamics. Journal of Visual Communication and Image Representation, 18(2), 109–118.
24. Sahani, S.K, Oruganti, S.K., K. Satish Kumar, and Karna, S.K.( 2025). “Reliability Assessment of a Plywood Production Facility Utilizing Laplace Transform and Runge-Kutta Fourth-Order Differential Equations: Overview of Industrial Plant”. Metallurgical and Materials Engineering 31 (4):417-23. https://doi.org/10.63278/1453
25. Praveenkumar, T., Anthoniraj, S., Kumarganesh, S., Somaskandan, M., Martin Sagayam, K., Pandey, B. K., ... & Sahani, S. K. (2025). Enhanced Circuit Board Analysis: Infrared Image Segmentation Utilizing Markov Random Field (MRF) and Level Set Techniques. Engineering Reports, 7(3), e70029.
26. Chaudhary, A. K., Upadhaya, J., Nepal, B., Karki, M., Kandel, M., Kumar, A., ... & Sharma10, G. (2024). Cybersecurity in Network Traffic: Integrating Statistical Techniques with AI.
27. Sahani, S.K., Agarwal, S.K., Singh, V.V.(2025). Performance and Assessment of Jaw Crusher in a Cement Manufacturing Plant, Communications on Applied Nonlinear Analysis, Vol 32 No. 3,904-909
28. Sahani, S.K., Sah, B.K., Sahani, K. (2023), Reliability-Centered Maintenance (RCM) in Cement Manufacturing Plants, Advances in Nonlinear Variational Inequalities, Vol. 26, No.1, 2023, 16-25. DOI: https://doi.org/10.52783/anvi.v26.4224.
29. Sahani, S.K., Sah, B.K., Sahani, K., (2023) Statistical Reliability Modeling of Cement Kilns and Crushers, Panamerican Mathematical Journal, Vol 33No. 4(2023),115-120.
30. Rawal, D.K., Sahani, S.K., Singh, V.V., and Jibril, A.(2022), Reliability assessment of multi- computer system consisting n- clients and the k- out- of-n: G operation scheme with copula repair policy, Life Cycle Reliability and safety engineering, 05 May 2022, DOI: "https://doi.org/10.1007/s41872-022-00192-5.
31. Sahani, K., Khadka, S. S., Sahani, S. K., Pandey, B. K., & Pandey, D. (2024). A possible underground roadway for transportation facilities in Kathmandu Valley: A racking deformation of underground rectangular structures. Engineering Reports, 6(8), e12821.
32. Pandey, B. K., Pandey, D., & Sahani, S. K. (2025). Autopilot control unmanned aerial vehicle system for sewage defect detection using deep learning. Engineering Reports, 7(1), e12852. https://doi.org/10.1002/eng2.12852














