OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

i need help with coordenates


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPhysics [osgPhysics]
View previous topic :: View next topic  
Author Message
kaibaseto
Newbie


Joined: 14 Oct 2009
Posts: 15

PostPosted: Wed Oct 14, 2009 5:02 pm    Post subject:
i need help with coordenates
Reply with quote

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
Back to top
View user's profile Send private message
Skylark (Jean-S├ębastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Wed Oct 14, 2009 7:14 pm    Post subject:
i need help with coordenates
Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgPhysics [osgPhysics] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP