Hi, I am creating a racing game which has a track made out of btBvhTriangleMeshShape pieces, such as straights and corners like in trackmania. I load the vertices for the pieces from meshes I have created.
My car drives fine over the straight pieces of road, but on the corners, it seems to hit bumps when my car is travelling fast, like the vertex normals of the btBvhTriangleMeshShape are not the same as the normals of the mesh or something.
Can someone help me with this?
thanks,
r_bewick
btBvhTriangleMeshShape collision problem
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: btBvhTriangleMeshShape collision problem
Hi,r_bewick wrote:Hi, I am creating a racing game which has a track made out of btBvhTriangleMeshShape pieces, such as straights and corners like in trackmania. I load the vertices for the pieces from meshes I have created.
My car drives fine over the straight pieces of road, but on the corners, it seems to hit bumps when my car is travelling fast, like the vertex normals of the btBvhTriangleMeshShape are not the same as the normals of the mesh or something.
Can someone help me with this?
thanks,
r_bewick
do you use the bullet vehicle or a bullet character controller for the car?
-
- Posts: 8
- Joined: Sat Nov 13, 2010 2:58 am
Re: btBvhTriangleMeshShape collision problem
Thanks for the reply, pico.
I use the vehicle from the bullet vehicle example.
Thanks,
r_bewick
I use the vehicle from the bullet vehicle example.
Thanks,
r_bewick
-
- Posts: 8
- Joined: Sat Nov 13, 2010 2:58 am
-
- Posts: 229
- Joined: Sun Sep 30, 2007 7:58 am
Re: btBvhTriangleMeshShape collision problem
Hi, sorry for the delay.
There are problems with wrong normals at the edges of a mesh. Please look here for a solution:
http://www.bulletphysics.org/Bullet/php ... dgeInfo%23
There are problems with wrong normals at the edges of a mesh. Please look here for a solution:
http://www.bulletphysics.org/Bullet/php ... dgeInfo%23
-
- Posts: 8
- Joined: Sat Nov 13, 2010 2:58 am
Re: btBvhTriangleMeshShape collision problem
Thanks pico.