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

Character controller collides with sensor colliders (Typescript) #242

Closed
Luis-Enrique93 opened this issue Jul 17, 2023 · 5 comments
Closed

Comments

@Luis-Enrique93
Copy link

Built in Character controller collides with sensor colliders

package: @dimforge/rapier3d
version: 0.11.2

@vivax3794
Copy link

I have the same issue with a sensor collider in Bevy.

@Sceat
Copy link

Sceat commented Dec 19, 2023

This defeats the purpose of sensor, issue still there :/

@khudiiash
Copy link

And the issue is still there, cannot use sensors at all

@sebcrozet
Copy link
Member

sebcrozet commented May 11, 2024

The character controller takes an optional filterFlags?: QueryFilterFlags argument. To exclude sensors, simply specify QueryFilterFlags.EXCLUDE_SENSORS:

characterController.computeColliderMovement(collider, desiredMovement, QueryFilterFlags.EXCLUDE_SENSORS);

See details on other optional character-controler arguments in the API documentation.

Closing this now since this is a usage issue.
Please reopen if excluding the sensors this way doesn’t work as expected.

@vivax3794
Copy link

I will say I would have expected that to be the default (as it is how sensors interact with other types of colliders), but thanks for pointing us in the right direction. Maybe it is worth mentioning on the characther controller guides that they collide with sensors by default?

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

5 participants