Evaluation of Physics Frameworks for Building Web-Based Games
Main Article Content
Abstract
Recently, WebGL technology has shown a lot of potential for developing games. Since this technology is still relatively new, there is still much potential in the game development area that has not been explored yet. This paper explores the development of a game engine made with WebGL technology that integrates some physics frameworks for developing web-based 2D or 3D games. Specifically, we integrated three open source physics frameworks, which are Bullet, Cannon, and JigLib, into a WebGL-based game engine. We assessed these frameworks using some experiments, in terms of their correctness or accuracy, performance, completeness and compatibility. The results show that it is possible to integrate open source physics frameworks into a WebGL-based game engine, and Bullet is the best physics framework to be integrated into a WebGL-based game engine.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal the right of first publication. The work is simultaneously licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits others to copy, distribute, remix, adapt, and build upon the work, even commercially, provided proper attribution is given to the original authors and the journal as the source of first publication.
- Authors may enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., posting to institutional repositories, inclusion in books), with an acknowledgment of its initial publication in this journal.
- Authors are encouraged to post their work online (e.g., in institutional repositories, personal websites, or preprint servers) prior to and during the submission process. This practice can foster productive exchanges and may lead to earlier and increased citation of the published work.
User Rights:
All articles published Open Access will be immediately and permanently free for everyone to read and download. We are continuously working with our author communities to select the best choice of license options, currently being defined for this journal as follows: Creative Commons Attribution 4.0 International License.
References
D. Schultheiss, “Long-term motivations to play MMOGs: A longitudinal study on motivations, experience and behavior,†DiGRA, 2007, pp. 344.
Angry Birds, [Online]. Available: http://www.angrybirds.com/.
Cut the Rope, [Online]. Available: http://www.cuttherope.ie/.
Pokemon Go, [Online]. Available: http://www.pokemongo.com/
Khronos Group, “WebGL - OpenGL ES 2.0 for the Web,†[Online]. Available: http://www.khronos.org/webgl/.
Game engines and tools, The Mozilla Developer Network, [Online].
Available: https://developer.mozilla.org/en-
US/docs/Games/Tools/Engines_and_tools
C. Marrin. "WebGL specification." Khronos WebGL Working Group, 2011.
A. Deveria. “Can I use W ebGL?†[Online]. Available: http://caniuse.com/webgl.
J. Gregory, “Foundations in Game Engine Architecture.†Massachusetts, A K Peters, Ltd., United States of America, 2009, ch. 1, pp. 3-55.
Unreal Engine. [Online]. Available: https://www.unrealengine.com/.
Construct 2. [Online]. Available: https://www.scirra.com/construct2.
Unity. [Online]. Available: http://unity3d.com/unity/.
PhysX - GeForce. [Online]. Available:
http://www.geforce.com/hardware/technology/physx.
Havok. [Online]. Available: http://www.havok.com/.
G. Mulley and M. Bittarelli. “Ragdoll Physics.†[Online]. Available: http://www.cs.rpi.edu/~cutler/classes/advancedgraphics/S07/final_proje cts/mulley_bittarelli.pdf. 2007
J. Gastrin, “Physically Based Character Simulation-Rag Doll Behaviour in Computer Games.†Royal Institute of Technology, Stockholm. 2004
Game Physics Simulation. [Online]. Available:
http://bulletphysics.org/wordpress/.
kripken/emscripten W iki â– GitHub. [Online]. Available:
https://github.com/kripken/emscripten/wiki.
JigLibJS. [Online]. Available: http://www.jiglibjs.org/.
S. Hedman. [Online]. Available: http://schteppe.github.com/cannon.js/.
D. M. Bourg, “Physics For Game Developers.†O'Reilly Media, Inc., 2002.
C. Hecker. "Physics, part 3: Collision response." Game Developer Magazine, 1997, pp: 11-18