Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

babaoriley0

rotate to face point?

This topic is 5541 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, i''m using the irrlicht engine, and i''m trying to figure out how i''d rotate a model to face a point...can anyone help? any code/equations would be great (they don''t have to be specific to the engine). thanks.

Share this post


Link to post
Share on other sites
Advertisement
Google for "billboards" to find out a way to align an object to face a point (or camera, in the case of billboards)

Share this post


Link to post
Share on other sites
Take a look on my website, I''ve a simple example using billboarding.

========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/

Share this post


Link to post
Share on other sites
Keep trying, I guess! Here is a good site for it:

http://www.lighthouse3d.com/opengl/billboarding/index.php3?billInt

It explains it in a pretty easy to understand way, imo

Raj

Share this post


Link to post
Share on other sites
thanks very much for the help, but the billboard techniques just don''t seem to work for me. i only need to rotate the model around it''s y axis...i thought getting the direction to the point and then setting the model''s y rotation value to the direction vector''s y would work, but it doesn''t...any other help?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!