Search found 65 matches

by Karrok
Wed May 25, 2011 7:44 am
Forum: General Bullet Physics Support and Feedback
Topic: Collision-only trimesh->trimesh collision yields 0 hits.
Replies: 3
Views: 7075

Re: Collision-only trimesh->trimesh collision yields 0 hits.

Ok so, apparently the Trimesh-trimesh collisions can not be found with the default dispatcher. Changing the CollisionShape from trimesh to convex-trimesh or convexhull was caught by the default dispatcher. Can Trimesh-trimesh collsions only be caught using gimpact ? The the above mentioned collision...
by Karrok
Wed May 18, 2011 2:41 pm
Forum: General Bullet Physics Support and Feedback
Topic: Collision-only trimesh->trimesh collision yields 0 hits.
Replies: 3
Views: 7075

Collision-only trimesh->trimesh collision yields 0 hits.

Hey All, I've got a tiny problem. I have a btCollision world filled with btCollisionObjects which each have a Trimesh (at worst) as a btCollisionShape. However after I call performDiscreteCollisionDetection on my world, the manifold stays empty. Some code that might show the error: Create world btDe...
by Karrok
Fri May 13, 2011 1:47 pm
Forum: General Bullet Physics Support and Feedback
Topic: Adding Custom user data to objects (names etc)
Replies: 5
Views: 5806

Re: Adding Custom user data to objects (names etc)

Ok, and how can I then iterate over all objects in the world to find an object that has (for example) "somestring" as user data?
by Karrok
Fri May 13, 2011 1:35 pm
Forum: General Bullet Physics Support and Feedback
Topic: Adding Custom user data to objects (names etc)
Replies: 5
Views: 5806

Re: Adding Custom user data to objects (names etc)

So, something like this: (?) struct SomeData { std::string something; } btCollisionShape * collshape = ....someshape btCollisionObject * collobj = new btCollisionObject() collobj->setCollisionShape(collshape); SomeData sd = new SomeData(); sd->something = "hello"; collobj->setUserPointer(*...
by Karrok
Fri May 13, 2011 1:24 pm
Forum: General Bullet Physics Support and Feedback
Topic: Adding Custom user data to objects (names etc)
Replies: 5
Views: 5806

Adding Custom user data to objects (names etc)

Hello Bullet, I was wondering whether it was possible to simple add names (strings) or structs to collision objects. As an example, ODE has userData that can point to any userconcieved struct/class to contain any additional data the user wants. This way I can add a name like "sphere_one" t...