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

Only floating capsule ? #13

Open
gdamou opened this issue Oct 24, 2023 · 1 comment
Open

Only floating capsule ? #13

gdamou opened this issue Oct 24, 2023 · 1 comment

Comments

@gdamou
Copy link

gdamou commented Oct 24, 2023

Hello,

Thanks a lot for this great project, I am sure it will have a big impact in the future of web 3D.

Do you plan to upgrade the character control to any type of colliders ? I mean for the moment it works for floating capsule but what about a car ? That is just an example. Maybe it is already possible to convert the capsule to other collider but I didn't find a way to do it.

Have a great day !

@ErdongChen-Andrew
Copy link
Member

😁 Thanks @gdamou!

The capsule collider is essential for applying controls, but you can add colliders on top of the capsule within the character component. Here's an example: <Ecctrl><CuboidCollider args={[1,0.2,1]} mass={0}/></Ecctrl>

However, if you change the shape and mass of the character, you may need to adjust the springK and dampingC parameters to find the perfect values for floating and autobalancing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants