POV-Ray : Newsgroups : povray.animations : Rotating text around center? : Re: Rotating text around center? Server Time
28 Jul 2024 16:17:56 EDT (-0400)
  Re: Rotating text around center?  
From: Brian Mason
Date: 18 Jun 1999 23:40:07
Message: <376B106A.7817@gvn.net>
Larkril wrote:
> 
> I am making an animation, and I am trying to rotate a single word around in
> a circle.  The problem is that since text starts at the lower left corner(in
> POVray, which is what I'm using) it rotates by its edge instead of by the
> middle.  For example, it rotates more like the hand of a clock than a plane
> propeller.  How can I get around this.  There must be some fancy thing I can
> do with sin and cosine, etc...  If you wouldn't mind, please email me a copy
> of your reply at rla### [at] mbhsedu.  Thanks a lot for any help!
Larkrill,

You need to translate your text to the left by half of the length of the
text.  This will center your text at 0,0.  All rotations rotate about
this point.


-- 
-------------------------------------------------------------------------

Brian Mason
bri### [at] gvnnet
http://www.gvn.net/~brian448/

-------------------------------------------------------------------------


Post a reply to this message

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