POV-Ray : Newsgroups : povray.advanced-users : Facing objects : Re: Facing objects Server Time
29 Jul 2024 10:30:07 EDT (-0400)
  Re: Facing objects  
From: Jan Maarten van der Valk
Date: 30 Jul 2002 17:32:55
Message: <3d470607@news.povray.org>
"Rohan Bernett" wrote
>
> How do I make an object moving along a spline turn to match the spline? I
> know it's easy to do with the camera, just set look_at to clock+0.1, but
> how do I do it with any object?
>

See \scenes\animations\splinefollow

JM

--
#macro J(M)V()<V(),V(),V()>#if(M)J(M)#end#end#local _=20;#macro V()asc(substr
("IIMYKIIYMMKQOIMYQEEYSCEYUEGQWEHYYIGQ[HEY]IGY_JGQaJEYcKGYeKGQgLEYiMKIs!K!",
73-M,1))/2-36.5#declare M=M-1;#end#local a=spline{cubic_spline J(72)}#while
(_)sphere{a(_).1pigment{rgb(a(_)+(x+y)*3.5)}}#local _=_-.02;#end//JM


Post a reply to this message

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