Setting BitMask

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Descend
Posts: 10
Joined: Tue Sep 09, 2003 8:37 pm

Setting BitMask

Post by Descend »

Ok this may seem like a dumb question to those who know but I can't find it anywhere.

How do you set the BitMask of a node with the idea of trapping just this node when using getSceneNodeFromRayBB()
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Just set the id of the node to a value like, for example 0x1, then the bitmask would be 0x1. Ok, maybe this was no good example. But if you know how to use bitmasks in C or C++, I hope you'll understand. Otherwise just search to web how to use bitmasks there are lots of good resources available.
Post Reply