POV-Ray : Newsgroups : povray.animations : Vectors POV : Vectors POV Server Time
28 Jul 2024 18:12:07 EDT (-0400)
  Vectors POV  
From: Nils Steinkamp
Date: 25 May 1999 05:14:02
Message: <374a5bca.0@news.povray.org>
Hi there,

I have a little problem with the rotation of an object.

I have 2 points, < x1 , y1 , z1 > and < x2 , y2 , z2 > , and an object at
the origin orientated in x-axis.
Now I want to rotate the object that way that it has the same direction that
the line from point 1 to point 2 has. The translation is done by other math,
I only need to rotate the object about origin.

I tried much with vnormalize() and so on, but the results never looked like
they should...

Thanks,

Nils

http://www.steini.de


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.