src/demo/Demo.js:5
Demo framework class. If you want to learn how to connect Cannon.js with Three.js, please look at the examples/ instead.
addScenetitle
initfunc
Defined in
src/demo/Demo.js:209
Add a scene to the demo app
title
String
Title of the scene
initfunc
Function
A function that takes one argument, app, and initializes a physics scene. The function runs app.setWorld(body), app.addVisual(body), app.removeVisual(body) etc.