btGhostObject and btBvhTriangleMeshShape

BigHatLogan
Posts: 7
Joined: Mon Sep 02, 2013 4:15 am

btGhostObject and btBvhTriangleMeshShape

Post by BigHatLogan »

Hello,

I'm wondering if it is possible to use a btBvhTriangleMeshShape as a ghost object's shape?

I have a btPairCachingGhostObject and it is bein controlled by a btKinematicController.

When I use a generic shape (cube, cylinder, capsule) it works fine but when the shape is a mesh from btBvhTriangleMeshShape, I get an exception in btQuantizedBvh.h (line 424 void quantizeWithClamp(unsigned short* out, const btVector3& point2,int isMax) const{...)

Is there any know problem as to why this might be happening?

Perhaps I'm creating the mesh incorrectly? I can use the meshes as static btCollision objects but not as ghost objects

Thanks
h[Oz]
Posts: 6
Joined: Thu Aug 29, 2013 11:49 am

Re: btGhostObject and btBvhTriangleMeshShape

Post by h[Oz] »

Isn't it because the btBvhTriangleMeshShape is always static ?
BigHatLogan
Posts: 7
Joined: Mon Sep 02, 2013 4:15 am

Re: btGhostObject and btBvhTriangleMeshShape

Post by BigHatLogan »

Ah I didn't see that, thanks