Hi. Sorry to bother this messageboard again with more newbie questions, but I find that it has been a great resource (and pretty active) too.
- I have a couple of objects that are in the same TransformGroup, and I’ve
given the TransformGroup pick behaviors so that I can drag it around.
My question is, how do I get the x/y/z position of the TransformGroup’s
current position? For instance, if I drag it somewhere and want to print
out it’s new position. I’ve looked at TransformGroup and Transform3D and I
haven’t found anything useful…any help would be greatly appreciated.
2)I was wondering if there is a quick and easy way to switch the buttons
assigned to the default MouseBehaviors. The default is left-button rotate,
right-button translate, third-button zoom. Is there an easy way to just
swap these around without having to rewrite a whole set of mouse behaviors?
- Instead of dragging objects around, I was thinking maybe I could make it such that I could click it once and it’ll follow my mouse around. Then when I click it again, I set it down to its new position. Should I be writing a new PickBehavior for this or a new MouseBehavior to get this sort of functionality? Or should I be manually extracting the mouse’s position and tracking it somehow?
Thanks again,
DAT