rotate to face point?
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.
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://www.slug-production.be.tf/
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
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
Popular Topics
Advertisement