I'm currently implementing bullet's raycast vehicles in my engine, and so far the results are pretty satisfying.
However it only behaves correctly when driving on btConvexShape-objects. As soon as I try to drive over an object with a btTriangleMesh-shape, it starts to randomly collide with absolutely nothing, even if the surface is completely level:
https://youtu.be/WNfx3Zl3VEM
(The wheels don't have a shape, the red cylinders just represent the radius and rotation of each wheel.)
As you can see, as soon as I start driving on the orange triangle-surfaces it just spazzes out.
The vehicles just do a simple raycast downwards, it's implemented the same way as btDefaultVehicleRaycaster.
If I move my character controller (A capsule shape) over the triangle shapes, it works just fine. Same for rigid body physic objects.
What could be causing this?
Raycast vehicle collision problems with btTriangleMesh
-
- Posts: 27
- Joined: Thu Oct 30, 2014 9:15 pm