pmndrs / react-three-rapier

🤺 Rapier physics in React
https://react-three-rapier.pmnd.rs
MIT License
1.09k stars 62 forks source link

[WIP ]Kinematic character controller #702

Open AlaricBaraou opened 2 months ago

AlaricBaraou commented 2 months ago

TODO

This PR is meant to allow everyone to help in using the kinematic character controller of rapier https://rapier.rs/docs/user_guides/javascript/character_controller/

Depends on https://github.com/pmndrs/react-three-rapier/pull/701

https://github.com/user-attachments/assets/cb147eee-d102-40bd-b22e-a46c12c36d50

This won't be fully working until Rapier fix this https://github.com/dimforge/rapier.js/issues/291 and publish the fix to rapier.js The current PR that fix the slope issue doesn't mention fixing the stairs issue.

For now using a capsule with the proper radius / velocity allow climbing some stairs, but this is not really controlled.

I'll probably stop the development on this until further progress is made on the rapier side.

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: eb40c31e7bdcf1bb90ad9f71a7bdffeb5f59ce4b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

AlaricBaraou commented 2 months ago

A cube to illustrate more the stairs issue.

https://github.com/user-attachments/assets/cf3a6e15-109d-4f60-9a7a-37bb99bf211f