请输入您要查询的百科知识:

 

词条 Cannon.js
释义

  1. Features

  2. References

  3. External links

{{Infobox software
| title = Cannon.js
| name = Cannon.js
| platform =
| programming language = JavaScript
| status = Active
| operating_system = OS independent
| genre = 3D physics engine
| license = MIT License
| developer = Stefan Hedman
| website = {{URL|http://www.cannonjs.org/}}
| AsOf =
}}Cannon.js is an open source JavaScript 3D physics engine created by Stefan "schteppe" Hedman.[1] Unlike physics engine libraries ported from C++ to Javascript, cannon.js is written in Javascript from the start and can take advantage of its features.[2] In a 2013 comparison with Ammo.js, cannon.js was found to be "more compact, more comprehensible, more powerful with regard to its performance and also easier to understand", but did not have as many features.[3]

Features

Cannon.js supports the following shapes: sphere, plane, box, cylinder, convex polyhedron, particle, and heightfield. This collection of shapes matches the collection used by rendering engines such as Three.js and Babylon, but is not complete. For example, it is not sufficient for X3DOM,[3] an application of X3D which allows 3D graphics to be included in web pages without the need for a plug-in.[4]

The physics engine implements rigid-body dynamics, discrete collision detection, and a Gauss-Seidel constraint solver.[5] It can perform cloth simulation[6]

Cannon.js can be used with Three.js and Babylon.js[7][8] WebGL renderers to generate physics-based 3D scenes. It can also be used to provide networked-physics synchronization for multiplayer online games using Lance.gg[9]

References

1. ^{{cite web |title=Stefan Hedman |url=https://github.com/schteppe |website=GitHub |accessdate=27 April 2017}}
2. ^{{cite web |last=Prall |first=Chandler |title=JavaScript Physics Engines Comparison |url=http://buildnewgames.com/physics-engines-comparison/ |website=Build New Games |date=10 April 2012 |accessdate=27 April 2017}}
3. ^{{cite book |last=Huber |first=Linda |chapter=Initial Steps for the Coupling of JavaScript Physics Engines with X3DOM |editors=Jan Bender; Jeremie Dequidt; Christian Duriez; Gabriel Zachmann |title=Workshop on Virtual Reality Interaction and Physical Simulation (VRIPHYS 2013) |publisher=The Eurographics Association |date=2013 |pages=81–90 |isbn=978-3-905674-57-6 |doi=10.2312/PE.vriphys.vriphys13.081-090}}
4. ^{{cite web |title=Background: What is X3DOM, and what can it do for me? |url=https://doc.x3dom.org/gettingStarted/background/index.html |work=official x3dom documentation |publisher=x3dom.org |accessdate=27 April 2017}}
5. ^{{cite web |title= Branch: master. cannon.js/README.markdown |url=https://github.com/schteppe/cannon.js/blob/master/README.markdown |publisher=GitHub |date=22 April 2015 |accessdate=27 April 2017}}
6. ^{{cite web | url=https://blog.raananweber.com/2016/04/03/cloth-physics-simulation-for-babylon-js/ | title = Cloth physics simulation}}
7. ^{{cite web|title=Create wonderful interactive games for the web: Using webgl and a physics engine (babylon.js & cannon.js)|url=https://www.eternalcoding.com/?p=153|accessdate=21 February 2017}}
8. ^{{cite web|title=MSDN Game Development with Babylon.js|url=https://msdn.microsoft.com/en-us/magazine/mt614269.aspx|accessdate=21 February 2017}}
9. ^{{cite web | url = https://github.com/lance-gg/lance | title = Lance source repository}}

External links

  • {{Official website|http://www.cannonjs.org/}}
  • [https://github.com/schteppe/cannon.js Source Code Repository]
{{Physics engines}}

2 : Computer physics engines|Software using the MIT license

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 12:59:13