POV-Ray : Newsgroups : povray.general : lining up an object with a vector : Re: lining up an object with a vector Server Time
5 Aug 2024 10:25:14 EDT (-0400)
  Re: lining up an object with a vector  
From: Christopher James Huff
Date: 3 Oct 2002 10:09:15
Message: <chrishuff-20E450.10061103102002@netplex.aussie.org>
In article <3d9c09c3$1@news.povray.org>,
 "Jan Maarten van der Valk" <jm.### [at] hccnetnl> wrote:

> Found the answer myself after reading the 'Constrained motion' thread in 
> p.a-u.
> The Axis_rotate_Trans macro does the trick.
> 
>     Axis_Rotate_Trans(VPerp_To_Plane(y,Norm), VAngleD(y,Norm))
> 
> where Norm is the vector the object should be aligned with.

That is a very odd way to do it, since if you know about 
Axis_Rotate_Trans() you should know about the other macros in that 
file..."Point_At_Trans(Norm)" should do the job fine.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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