J.C
J.C
https://stackoverflow.com/questions/18364175/best-practices-for-reducing-garbage-collector-activity-in-javascript @flyover hi, FYI.
https://github.com/wasm-tool/rollup-plugin-rust use this plugin directly, you can even just import from Cargo.toml
i think you can't modify it after the creation.
> Hi @jcyuan - I did actually locally make this change and it worked fine. However, that was before the large number of changes made by @sebcrozet in version 0.8.x...
> While waiting for a way to get informations for triangle shape directly from the collider, how can I use the convex polygon to create a triangle ? I don't...
show some of your code please. `body.sleep` should work i think. no, there is no margin on a body, it's unnecessary since you can create your body a bit larger...
```typescript const bdDesc = RigidBodyDesc.dynamic(); bdDesc.setCanSleep(true); bdDesc.setTranslation(4, 0); const coDesc = ColliderDesc.ball(.3); const bd = context.world.createRigidBody(bdDesc); const co = context.world.createCollider(coDesc, bd.handle); let i = 0; setInterval(function() { if (i %...
btw, set world's gravity as 0, the same result. it will blink normally.
ah, i know what you mean now, you wanna make it sleeping when it's just created, right? i think not unless you call `bd.sleep()` in next frame. @sebcrozet i think...
2d & 3d used the shared code, so it was added for both. for collision, if you mean penetration, try enable CCD, and limit velocity etc.