Hello again, @RaananW
So I started porting this cannon-es-debugger
(which is working with ThreeJS only) to make this work with the BabylonJS to check if I can figure out how to build raycastVehicle with cannon-es and BabylonJS.
It looks like I’m almost there:
(driving the vehicle is WSAD, and toggling the debugger is c
)
https://neu5.github.io/cannon-es-debugger-babylonjs/
- I still have problem that the wheels are not spinning… I tried
rotationQuaternion
but with no luck. - The second problem is with the shadows. They’re getting worse and worse during the time. Did I screwed up something there?
repo:
The code of the example is here:
I’d be glad if anyone could look at this