Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
salamanders opened this issue Dec 22, 2022 · 0 comments

Comments

@salamanders
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant