dimforge / rapier.js

Official JavaScript bindings for the Rapier physics engine.
https://rapier.rs
Apache License 2.0
430 stars 58 forks source link

Codepen JS demo does not work (solution provided) #174

Open GDur opened 2 years ago

GDur commented 2 years ago

Hi, it seems there is used deprecated code use in the codepen js demo.

RAPIER.BodyStatus.Dynamic vs RAPIER.RigidBodyType.Dynamic

Feel free to use this version 😀: https://codepen.io/GDur/pen/PoeyJBx?editors=0010

GDur commented 2 years ago

Here is a more advanced and fuller rapierjs ts template. I don't know where else to put it so I am trying it here :)

https://stackblitz.com/edit/typescript-rapierjs-and-renderer-template-59ldwm?file=src%2FRapierHelper.ts,src%2FinitiatePhysicsWorld.ts,index.ts

Feel free to use it as the online example as well