Vehicle raycast jumping on mesh's edge loops

Post Reply
stefanejro
Posts: 12
Joined: Sun May 20, 2018 6:57 pm

Vehicle raycast jumping on mesh's edge loops

Post by stefanejro »

Hi, I'm working on a racing game and I'm using btRaycastVehicle. When the vehicle drives over an edgeloop of a road's 3d mesh, it bounces, like if the edgeloop was an some kind of obstacle. The road is totaly flat though. Could you please provide any ideas that would help with that ? Do you know if any relatively easy fix exists ?
Attachments
vehicle_edgeloops.PNG
vehicle_edgeloops.PNG (25.76 KiB) Viewed 1947 times
stefanejro
Posts: 12
Joined: Sun May 20, 2018 6:57 pm

Re: Vehicle raycast jumping on mesh's edge loops

Post by stefanejro »

I've found a setting that makes things a bit better:
rigidBody->setContactProcessingThreshold(0.f);

Based on:
viewtopic.php?f=9&t=3052&start=30

We can consider this question closed.
Post Reply