POV-Ray : Newsgroups : povray.general : Direction on a spline : Direction on a spline Server Time
4 Aug 2024 06:14:16 EDT (-0400)
  Direction on a spline  
From: gonzo
Date: 13 Jul 2003 17:45:36
Message: <3f11d300@news.povray.org>
Ok, this is probably really simple and I'm just overlooking something
obvious....

I'm using a spline to create a path, and placing objects along the path with
a loop. How do I get the object to face the direction of the spline though?
If I use something like;

    object { My_Object translate Path(cntr) }

the object ends up in the right place, but still facing it's original
direction, when I want it to face the direction of the path.  I tried using
VAngleD( current_point, next_point ) to get a rotation angle and simply
rotating the object by that but it didn't seem to do anything.

Can somebody post a simple example of how to do this for a trigonometrically
impaired Pover?

RG


Post a reply to this message

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