My scene must use btBvhTriangleMeshShape,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.
is it a bug in btBvhTriangleMeshShape?
can anybody help?
thanks,Kenshin
btBvhTriangleMeshShape bug?
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
btBvhTriangleMeshShape bug?
Last edited by kenshin on Fri Jul 24, 2009 6:11 pm, edited 1 time in total.
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: btBvhTriangleMeshShape bug?
when my vehicle travel on btStaticPlaneShape
everything is Ok。
everything is Ok。
-
- Posts: 109
- Joined: Thu Dec 14, 2006 4:27 pm
- Location: Colombia
Re: btBvhTriangleMeshShape bug?
What if it is caused by Quantization?
Just for trying, use a btGImpactMeshShape which has the same functionality as btBvhTriangleMeshShape. But also you have to make some setting before using it:
Just for trying, use a btGImpactMeshShape which has the same functionality as btBvhTriangleMeshShape. But also you have to make some setting before using it:
- At this filebtGImpactShape.h , at line 44, change the line which is typed as : with
Code: Select all
typedef btGImpactQuantizedBvh btGImpactBoxSet;
for disabling quantization.Code: Select all
typedef btGImpactBvh btGImpactBoxSet;
- Enable GJK collision by uncomment the line 301 at this file:btGImpactCollisionAlgorithm.h.
Code: Select all
btCollisionDispatcher * dispatcher = static_cast<btCollisionDispatcher *>(m_dynamicsWorld ->getDispatcher());
btGImpactCollisionAlgorithm::registerAlgorithm(dispatcher);
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: btBvhTriangleMeshShape bug?
Thank you ! projectileman .
I will have a try.talk to you later
I will have a try.talk to you later
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: btBvhTriangleMeshShape bug?
hi,projectileman
As you said I have done。
but there is a big problem that my all Scene Shape all gone。
this is my bullet initial code:
when I first complete the input of code
the Compiler prompt that can't find the btGImpactCollisionAlgorithm.h
As you said I have done。
but there is a big problem that my all Scene Shape all gone。
this is my bullet initial code:
Code: Select all
void MyPhysicsSystem::BeginWorld()
{
mDispatcher = new btCollisionDispatcher(&mDefaultCollisionConfiguration);
mBroadphase = new btAxisSweep3(::btVector3 (-1000,-1000,-1000),::btVector3(1000,1000,1000));
mSolver =new btSequentialImpulseConstraintSolver();
mWorld =new btDiscreteDynamicsWorld(mDispatcher,mBroadphase,mSolver,&mDefaultCollisionConfiguration);
mWorld->setGravity(btVector3(0.0f,-10.f,0.0f));
btCollisionDispatcher * dispatcher = static_cast<btCollisionDispatcher *>(mWorld ->getDispatcher());
btGImpactCollisionAlgorithm::registerAlgorithm(dispatcher);
}
the Compiler prompt that can't find the btGImpactCollisionAlgorithm.h
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: btBvhTriangleMeshShape bug?
and I have another question that what is the Gimpact ,I search for user manual for some information ,but it seems dosen't have one。
-
- Posts: 36
- Joined: Fri Oct 31, 2008 5:10 pm
Re: btBvhTriangleMeshShape bug?
this is the pic of my game
car travel on plane terrain but suddenly rolls over。
car travel on plane terrain but suddenly rolls over。