excluding objects from ray

rogerdv

20-12-2010 13:34:54

Im trying to change my ogre based picking code to an OgreBullet based picking. The first problem is that I havent found a way to exclude some meshes from the ray, which I do in Ogre with query masks. How can I do this in Ogrebullet?

chaosavy

20-01-2011 20:57:01

What I do: all my objects have a type associated with them, so I filter em out based on type (simple int that's thrown into user any in a node or entity I forget exactly which one, the ridgid body has a pointer to the the ogre object so that's how that goes) I thought about setting up flags, but that would have complicated a whole lot of stuff.