rotate to face point?

Started by
4 comments, last by babaoriley0 20 years, 6 months ago
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.
Advertisement
Google for "billboards" to find out a way to align an object to face a point (or camera, in the case of billboards)
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/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
i''ve tried every billboard rotation example i''ve found, and nothing has worked. any help?
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
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?

This topic is closed to new replies.

Advertisement