- rigid bodies
- Reworked [Rendering Debug Shapes ](https://rapier.rs/docs/user_guides/javascript/getting_started_js#rendering-debug-shapes) section to be more similar with testbed code.
- collider -> colliderDesc
- `setAdditionalPrincipalAngularInertia` does not exist
- 2d: `setEnabledRotations`-> `enabledRotations`
- joints:
- prismatic parameters were doubled (6 instead of 3)
- scene queries
- ⚠️ toi -> timeOfImpact (RaycastHit) or time_of_impact (ShapecastHit)
- ⚠️ castShape has way more parameters, + optional ones. accompanying text is wrong
- `,` -> `;`
- ❓ no userdata for `Collider` ?
- ❓ no code snippet for query filter for 3d ? (the query filter part is dimension agnostic but there's code displayed which is not. (Also impacts rust and bevy sections.
Builds on https://github.com/dimforge/rapier.rs/pull/104 to provide a way to test more easily the javascript code snippets.
Diff so far: https://gist.github.com/Vrixyz/a627e66781f3fce62d4b39b85d02eb6b
Details
- rigid bodies - Reworked [Rendering Debug Shapes ](https://rapier.rs/docs/user_guides/javascript/getting_started_js#rendering-debug-shapes) section to be more similar with testbed code. - collider -> colliderDesc - `setAdditionalPrincipalAngularInertia` does not exist - 2d: `setEnabledRotations`-> `enabledRotations` - joints: - prismatic parameters were doubled (6 instead of 3) - scene queries - ⚠️ toi -> timeOfImpact (RaycastHit) or time_of_impact (ShapecastHit) - ⚠️ castShape has way more parameters, + optional ones. accompanying text is wrong - `,` -> `;` - ❓ no userdata for `Collider` ? - ❓ no code snippet for query filter for 3d ? (the query filter part is dimension agnostic but there's code displayed which is not. (Also impacts rust and bevy sections.