pmndrs / ecctrl

🕹ī¸ A floating rigibody character controller
MIT License
467 stars 50 forks source link

Interacting with other Rigid bodies and Sensors gives odd behavior #10

Closed sawariz0r closed 9 months ago

sawariz0r commented 9 months ago

Hiya! I'm glad to see this package. Been trying to implement it well for a long time :D

I'm running into some issues interacting with other RigidBodies and sensor-Colliders. Here it's floating on top of the sensors. When running into one it can either bounce me up, work without any problems or just make the character stuck.

Tabbing out and tabbing in sometimes solves this issue.

Happy to help debugging this, just flagging it.

https://github.com/pmndrs/ecctrl/assets/17275925/bb56e526-fdc2-47c9-a4a4-7455404e8968

ErdongChen-Andrew commented 9 months ago

Thanks @sawariz0r ! I've encountered this issue before, I thought I had fixed it 😅. The problem occurs because the downward raycasting can't properly detect the sensor collider. I'll need to find a better way to handle this.

ErdongChen-Andrew commented 9 months ago

@sawariz0r It has been resolved in version 1.0.33. Please give it a try, and let me know if you encounter any issues. 😁

sawariz0r commented 9 months ago

Works great! Thanks 🙏