pmndrs / react-three-rapier

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

DynamicRayCastVehicleController wheels are affected by sensors #693

Open LoronsoDev opened 4 months ago

LoronsoDev commented 4 months ago

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