pmndrs/cannon-es

Documentation question: After getting the red box wireframe working, and want to get gray boxes bouncing...

salamanders opened this issue · 0 comments

I'm unsure if there is an easy way to do this. I'm testing out the library and would like to make a pile of concave shapes all fall to the floor and interact. I've gotten as far as the simple demo from the docs (spinning red cube), but how do I convert to the basic shading style the rest of the demos use?

They all call Demo and I was looking through that class - but if all I need is "see objects in a regular rendering", is there some lines that I can pull out? A light source plus basic shading?

Maybe https://github.com/pmndrs/cannon-es/blob/master/examples/js/Demo.js#L104 ?