Skip to content

DynamicRayCastVehicleController wheels are affected by sensors #693

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

Open
LoronsoDev opened this issue Jul 3, 2024 · 1 comment
Open

Comments

@LoronsoDev
Copy link

LoronsoDev commented Jul 3, 2024

Hi, I've detected that the wheels of DynamicRaycastVehicle ignore the sensor or generally have a weird behaviour when they are in contact.

The sensor is really simple, taken from the Readme in this repo:

<RigidBody type="fixed"> <CuboidCollider position={controls.leftTriggerPos} args={[2,2,2]} sensor={true} onIntersectionEnter={() => console.log("Goal!")} /> </RigidBody>

On the upside the demo gif is kinda funny

RapierSensorWheels

@zajicm-qubix
Copy link

I am late, but for someone who has the same problem in the future - you can solve it by putting QueryFilterFlags.EXCLUDE_SENSORS into updateVehicle function in filterFlags parameter

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