Hello everybody here!
I made a program using bullet, bullet is very powerful ! But I got a problem, I created a scene with loading a terrain, using btBvhTriangleMeshShape, and place
some boxes on it. when box's size all greater than 1.0f, the boxes will collide with the terrain, when boxes' size is less than 1.0f, they won't collide with the terrain!
How can I get them to work correctly?
Thanks a lot guys!
Box collision with triangle mesh
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: Box collision with triangle mesh
I have this problem ,too
what‘s to be done?
what‘s to be done?
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: Box collision with triangle mesh
not btBvhTriangleMeshShape,you should use btHeightfieldTerrainShape.dcteris wrote: Hello everybody here!
I made a program using bullet, bullet is very powerful ! But I got a problem, I created a scene with loading a terrain, using btBvhTriangleMeshShape,
My scene must use btHeightfieldTerrainShape,It has this problem which can not be avoided.
I use the VehicleRaycast,the car travel on the btBvhTriangleMeshSHape ,even flat ground,
the car still like hit something.
I have try to detailing the scene's mesh triangle (one triangle separate into three)
but still useless.
can anybody help?
thanks,Kenshin
-
- Posts: 109
- Joined: Thu Dec 14, 2006 4:27 pm
- Location: Colombia
Re: Box collision with triangle mesh
Check this topic, there is a solution:
http://bulletphysics.com/Bullet/phpBB3/ ... f=9&t=3701
http://bulletphysics.com/Bullet/phpBB3/ ... f=9&t=3701