collision bitMask usage?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

collision bitMask usage?

Post by keless »

Hey, im trying to to ray-collision selection using getSceneNodeFromRayBB ()

I only want to select from my 'avatar' or 'creature' Scene Nodes. As I understand, I can set their ID in such a way that when I call getSceneNodeFromRayBB() I can send the ID parameter as a mask which should be checked against the ID of possibly colliding nodes.

My knowledge of bit masks can be seen here: http://www.skyesurfer.net/keless/vgp/bitflags.html

Unfortunately, its not working for me. Has anyone used this yet? Can you post an example, perhaps?
a screen cap is worth 0x100000 DWORDS
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

never mind, they work as expected. i was doin something silly.
a screen cap is worth 0x100000 DWORDS
Post Reply