Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create react api for DynamicRayCastVehicleController #323

Open
roman01la opened this issue Feb 25, 2023 · 5 comments
Open

Create react api for DynamicRayCastVehicleController #323

roman01la opened this issue Feb 25, 2023 · 5 comments
Labels

Comments

@roman01la
Copy link

Hello. I see that r3p currently depends on rapier 0.11.1, however 0.17.0 got DynamicRayCastVehicleController. Would be great to have it exposed in r3p.

@isaac-mason
Copy link
Member

isaac-mason commented Feb 25, 2023

For sure, it will be great to get this in rt/rapier!

But this is blocked on rapier.js bindings being updated to include the vehicle controller - https://github.com/dimforge/rapier.js

If you're keen to see this sooner, you could contribute to the bindings effort there. Last I heard on the dimforge discord someone was working on them, but it's been a while.

@isaac-mason
Copy link
Member

isaac-mason commented Feb 25, 2023

There's also no open issue on rapier.js for adding vehicle bindings. Would be good to open one there to track.

@grndctrl
Copy link

The vehicle controller is currently available through the canary release of @dimforge/rapier3d-compat

@isaac-mason
Copy link
Member

isaac-mason commented Oct 1, 2023

Some folks on discord shared they are working around this by overriding the version of @dimforge/rapier3d-compat that @react-three/rapier uses. See: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

This isn't ideal though 😞 unfortunately the maintainer of rapier is busy with non-rapier work right now and hasn't had time to get a release out.

@wiledal wiledal added the v2 label Jan 5, 2024
@isaac-mason
Copy link
Member

@react-three/rapier now uses a version of rapier.js with the dynamic raycast vehicle controller.

Example of usage:
https://sketches.isaacmason.com/sketch/rapier/dynamic-raycast-vehicle-controller
https://github.com/isaac-mason/sketches/blob/main/src/sketches/rapier/dynamic-raycast-vehicle-controller/use-vehicle-controller.ts

@isaac-mason isaac-mason changed the title DynamicRayCastVehicleController in Rapier v0.17.0 Create react api for DynamicRayCastVehicleController Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants