Hi everyone...
 
I have my program setup so that when shift is pressed, the whole set of MouseBehaviors are active and the viewpoint (or whole scene) moves around. Without shift pressed, the set of PickMouseBehaviors are active instead and the selected object gets moved around.
 
Fine, except that the pick transformations to an object occur in that object's frame of reference. Meaning that if the viewpoint is around the "back," for example, then translating with the mouse to the right will cause the object to move to ITS right (screen left), and not in the intuitive way across the screen.
 
What I would like is for the pick behaviors to be able to affect selected objects in the world frame of reference. What would be a good way of achieving this? I cannot seem to figure out the documentation for pick behaviors. For example, what is the Transform3D that gets passed to the transformChanged callback? I can imagine doing a bunch of matrix inversions and multiplies but the specifics are eluding me, and there may be an easier way of doing this...
 
Thanks for your help,
Sam Hasinoff
 

Reply via email to