Cannon.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 29:
 
Cannon.js supports the following shapes: [[Sphere]], [[Plane]], [[Box]], [[Cylinder]], [[Polyhedron#Convex_polyhedra|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<ref> {{cite web | url = https://pdfs.semanticscholar.org/e0fa/09e028075aa3b5274f15356563173eab8395.pdf | title = Initial steps for the coupling of Javascript Physics Engines with X3DOM}}</ref>.
 
The physics engine implements rigid-body dynamics, collision detection ([[Gauss–Seidel_method|Gauss-Seidel]]), and constraints. It can perform cloth simulation <ref>{{cite web | url=https://blog.raananweber.com/2016/04/03/cloth-physics-simulation-for-babylon-js/ | title = Cloth physics simulation}}</ref>