Hello, I'm starting to program a mmorpg game which will use textured quads for the sprites. my goal is to be able to right click on the sprite and have a menu come up at the sprites location, i've messed around with the osgpick example, it identifies the object it found by a name, so im wondering how i could for example structure it so when the sprite is picked, the sprites class hit function is called to let it know it got picked, is identifying it by name the only way? the only thing i can think of is to give each sprite a unique name and then have all the sprite class objects in an array and search for which object has that name, then i could call its hit function. I'd have to worry about all the objects in the scene having a unique name. is there any other way to do this? Thanks.
Yahoo! Groups gets better.
Check out the new email design. Plus theres much more to come.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/