Problem with Collision Detection and ClosestPoint

Please don't post Bullet support questions here, use the above forums instead.
Wozer
Posts: 1
Joined: Mon Apr 12, 2010 2:19 pm

Problem with Collision Detection and ClosestPoint

Post by Wozer »

Hello.

I am new to this bullet engine. I did most of the tutorials and looked at many demos. So far i am very impressed by this engine. But i have some questions which raised while trying to programm some things.

First ClosestPoint:
As far as i see. It is only possible to get the closest Point between two Objects, when they are convexHullShapes. Is this correct ? The Problem is, that i'm working with trianglemeshes and they're mostly not convex. So a convex approximation of these objects might be helpfull, but not very exact.

Collision Detection:
I tested a few things with the collision detection with strange results. A Collision between for example two Spheres works fine. But if i use trianglemeshs, the collision is not recognized. Why ? Did i forgot something ?

I normally would post some code but i do not know where the problem exactly is. I hope u can help anyway even with some hints.

Thanks :D
Mattg
Posts: 12
Joined: Thu Oct 22, 2009 12:50 am

Re: Problem with Collision Detection and ClosestPoint

Post by Mattg »

Check Erwin's reply in this thread http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=4737

While it's not exactly what Erwin says I think it means both shapes in a collision query can't be btBvhTriangleMeshShape.