Hi Ivan,

i am newbie in osg but i am to do a project wher i need that a camera follow a 
bounce ball i have the code of bouce ball but there are some way to know where 
is a object or node (coordinates)?

Err, well, I guess you made your ball bounce by setting coordinates somewhere? Probably you have a Transform node somewhere (MatrixTransform, PositionAttitudeTransform, etc.) and you set its position each frame so that it moves and bounces? Well then, get the position back out of that Transform and do what you want with it...

If that's not what you meant please be more explicit, but it seems like a really simple thing that you should know already if you've gotten far enough to get your ball to bounce.

Also you could search the mailing list / forum archives for "world transform" or something similar, in case your hierarchy uses multiple transforms to place objects in the world.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to