I'm overriding the "needsCollision" function in the RayResultCallback but the object passed is a btBroadphaseProxy instead of the btCollisionObject.
I really need the btCollisionObject, in order to get the userobjectpointer. This way I would be able to have a more complex "needsCollision" functionality.
The group/mask currently only has 16 bits, so at the moment I can only have 16 groups?
The btBroadphaseProxy however has a clientobject which "could" be the collisionObject?
How do I know what's in it?
rayTest custom RayResultCallback
-
- Posts: 237
- Joined: Tue Jun 29, 2010 10:27 pm
Re: rayTest custom RayResultCallback
Assuming it is correct, the reply in this thread: http://bulletphysics.org/Bullet/phpBB3/ ... oxy#p20632 seems to answer your question.
fyi I found it right away when using the forum search tool for "btbroadphaseproxy"
fyi I found it right away when using the forum search tool for "btbroadphaseproxy"

-
- Posts: 11
- Joined: Wed Mar 30, 2011 2:12 pm
Re: rayTest custom RayResultCallback
Allright thanks, it is the answer I was looking for..
I did a search back then, but apparently looked over that one
Sorry

I did a search back then, but apparently looked over that one

Sorry
