How do I get scene object without using collision?
by Jereis Zaatri · in iTorque 2D · 12/19/2010 (6:19 pm) · 3 replies
Is there a way to get scene object if I provide an x, y coordinate? Using onMousePress() call backs won't work, because my GUI objects take up the whole screen, so I need something that I can accomplish with coordinates only. Is there a way, I can produce a "fake" mouse press the bypasses the gui layer?
About the author
#2
Thanks!
12/19/2010 (9:56 pm)
Do the pick calls select based on the visual dimensions of the object or it's collision space?Thanks!
#3
12/19/2010 (10:02 pm)
I believe it will obey physics properties first (collision attributes), then go visual if none exists. The start of the function is in t2dSceneGraph.cc if you want to check it out.
Employee Michael Perry
ZombieShortbus
You might also be interested in pickRadius(...) and pickRect(...).