You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example codepen linked from this "getting started" page of the docs errors due to RAPIER.BodyStatus not existing. Per the v0.7.0 changelog it needs to be updated to RAPIER.RigidBodyType, or use the shorthand .newStatic()/.newDynamic().
I'm not able to submit a pull request to fix this because the code is on CodeMirror rather than Github. I wonder if there's some way to move the example code to Github but also keep them interactive/editable like on codepen? It would be handy if codepen had a URL-based import like https://codepen.io/?js=https://github.com/dimforge/rapier.js/path/to/example.js
The text was updated successfully, but these errors were encountered:
Hey @josephrocca, I actually found that Codepen example by looking at the Getting Started page too. I left a comment on the pen asking for help earlier today and then Googled an answer out of desperation and was happy to see I wasn't the only one having the issue! Your fix worked, thanks! I'm linking your work-around in my comment on the pen so others may find it as well.
This definitely seems like it could be a deterrent for people interested in using the library if the only example on Codepen isn't working- which is unfortunate, since this seems like an awesome lib.
Also, at first glance, I expected the simulation to actually be rendered and play out in a scene, and the fact that it didn't made it feel broken as well (even though it isn't). I understand the desire to keep the pen simple without importing a rendering library and add all the extra code to make that happen, that defeats the point of a "short and sweet" pen showing how to get started with the lib and without extra resources. So it probably should stay as it is besides the fix you suggested... but I'm hoping when the pen is fixed, Sébastien can also add
Check the console to see results!
in the HTML section so people don't just see a white screen and assume it's broken :)
The example codepen linked from this "getting started" page of the docs errors due to
RAPIER.BodyStatus
not existing. Per the v0.7.0 changelog it needs to be updated toRAPIER.RigidBodyType
, or use the shorthand.newStatic()
/.newDynamic()
.I'm not able to submit a pull request to fix this because the code is on CodeMirror rather than Github. I wonder if there's some way to move the example code to Github but also keep them interactive/editable like on codepen? It would be handy if codepen had a URL-based import like
https://codepen.io/?js=https://github.com/dimforge/rapier.js/path/to/example.js
The text was updated successfully, but these errors were encountered: