On 12/6/06, benny porat <[EMAIL PROTECTED]> wrote:

someone?
 I realy need to move object in the scene with the mouse..
 there maby onother way to do so?

Do you nee us to write the program for you?

Moving subgraphs is done by placing a transform node above the
subgraph, see osganimate for example.

There aren't any examples on computing the movement of an object in
response to mouse movement so this is an excise for the reader.  The
way I'd tackle it is to project a ray from the mouse pointer into the
scene and have this intersect a plane that is parallel to the eye
plane and intersecting the center of the object you want to move.
osg::Plane has code that will help in this compute.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to