kaibaseto Newbie
Joined: 14 Oct 2009 Posts: 15
|
Posted: Wed Oct 14, 2009 5:02 pm Post subject: i need help with coordenates |
|
|
Hi,
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)?
help me please
...
Thank you!
Cheers,
ivan |
|
Skylark (Jean-Sébastien Guay) Professional

Joined: 05 Jan 2009 Posts: 2249
|
Posted: Wed Oct 14, 2009 7:14 pm Post subject: i need help with coordenates |
|
|
Hi Ivan,
Quote:
|
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
http://www.cm-labs.com/
http://whitestar02.webhop.org/
------------------
Post generated by Mail2Forum |
|