when calling vehicleController.wheelRotation(i) on a RAPIER.DynamicRayCastVehicleController it will return 0 until steering is applied, even if it is moving.
when pressing forward the wheels will NOT rotate.
when pressing forward AND when turning to the right (pressing right) the front wheels will start rotate (in the correct direction), when turning left the wheels will rotate the OPPOSITE direction.
https://codepen.io/editor/Tomo0613/pen/019cd3e3-fe8b-738c-9211-e2529094714a
I added logging to the official ThreeJs demo (https://threejs.org/examples/?q=rapie#physics_rapier_vehicle_controller)
and reduced the wheel cylinder geometry's segment count to make it more visible.
when calling
vehicleController.wheelRotation(i)on aRAPIER.DynamicRayCastVehicleControllerit will return0until steering is applied, even if it is moving.when pressing forward the wheels will NOT rotate.
when pressing forward AND when turning to the right (pressing right) the front wheels will start rotate (in the correct direction), when turning left the wheels will rotate the OPPOSITE direction.
https://codepen.io/editor/Tomo0613/pen/019cd3e3-fe8b-738c-9211-e2529094714a
I added logging to the official ThreeJs demo (https://threejs.org/examples/?q=rapie#physics_rapier_vehicle_controller)
and reduced the wheel cylinder geometry's segment count to make it more visible.