dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
4.04k stars 250 forks source link

Where could I get the Demo code? #405

Closed CodingYiyi closed 2 years ago

CodingYiyi commented 2 years ago

https://rapier.rs/demos3d/index.html

I noticed this website as a Demo, I wonder if I can reach this code for local debug.

sebcrozet commented 2 years ago

Hi! The code for the demos are there: 2D and 3D. Though keep in mind that these are based on the Typescript bindings for Rapier.

If you are working with Rust, you can take a look at the examples directories: 2D and 3D. These Rust examples are note the ones you can see online though.

aubergene commented 1 year ago

I'm trying out Rapier since I've found issues with getting the simulation I need in Matter-js. It would be great if the demos could link directly to their source, or perhaps have a simple pure JS version with unminified source which could be a good quick starting point. I could try and work on something if this would be of interest. Thanks