<s>
Cannon.js	B-Application
is	O
an	O
open	B-Application
source	I-Application
JavaScript	B-Language
3D	O
physics	O
engine	O
created	O
by	O
Stefan	O
"	O
schteppe	O
"	O
Hedman	O
.	O
</s>
<s>
Unlike	O
physics	O
engine	O
libraries	O
ported	O
from	O
C++	O
to	O
JavaScript	B-Language
,	O
cannon.js	B-Application
is	O
written	O
in	O
JavaScript	B-Language
from	O
the	O
start	O
and	O
can	O
take	O
advantage	O
of	O
its	O
features	O
.	O
</s>
<s>
In	O
a	O
2013	O
comparison	O
with	O
Ammo.js	O
,	O
cannon.js	B-Application
was	O
found	O
to	O
be	O
"	O
more	O
compact	O
,	O
more	O
comprehensible	O
,	O
more	O
powerful	O
with	O
regard	O
to	O
its	O
performance	O
and	O
also	O
easier	O
to	O
understand	O
"	O
,	O
but	O
did	O
not	O
have	O
as	O
many	O
features	O
.	O
</s>
<s>
Cannon.js	B-Application
supports	O
the	O
following	O
shapes	O
:	O
sphere	O
,	O
plane	O
,	O
box	O
,	O
cylinder	O
,	O
convex	O
polyhedron	O
,	O
particle	O
,	O
and	O
heightfield	B-Data_Structure
.	O
</s>
<s>
This	O
collection	O
of	O
shapes	O
matches	O
the	O
collection	O
used	O
by	O
rendering	O
engines	O
such	O
as	O
Three.js	B-Language
and	O
Babylon	B-Language
,	O
but	O
is	O
not	O
complete	O
.	O
</s>
<s>
For	O
example	O
,	O
it	O
is	O
not	O
sufficient	O
for	O
X3DOM	O
,	O
an	O
application	O
of	O
X3D	B-Application
which	O
allows	O
3D	O
graphics	O
to	O
be	O
included	O
in	O
web	O
pages	O
without	O
the	O
need	O
for	O
a	O
plug-in	B-Application
.	O
</s>
<s>
The	O
physics	O
engine	O
implements	O
rigid-body	O
dynamics	O
,	O
discrete	O
collision	O
detection	O
,	O
and	O
a	O
Gauss-Seidel	B-Algorithm
constraint	O
solver	O
.	O
</s>
<s>
Cannon.js	B-Application
can	O
be	O
used	O
with	O
Three.js	B-Language
and	O
Babylon.js	B-Language
WebGL	O
renderers	O
to	O
generate	O
physics-based	O
3D	O
scenes	O
.	O
</s>
<s>
Note	O
that	O
Cannon.js	B-Application
uses	O
SI	O
units	O
(	O
metre	O
,	O
kilogram	O
,	O
second	O
,	O
etc	O
.	O
</s>
