|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> Tim McMurdo <jod### [at] woh rr com> wrote:
> > I am trying to determine the location and rotation of the object after it is
> > place on the ship's deck.
>
> It might be easier to use the functions in transforms.inc. They do all
> the hard work for you.
>
> --
> - Warp
As Warp says, there are REALLY useful rotators and such in transforms,inc.
......although the descriptions of what they do can be a bit difficult to
understand at first. The one I like to use, for what you're trying to
achieve, is Point_At_Trans. It can take an object made at the origin in the
normal way (y-axis pointing up), and whirl the object's y-axis around to
meet a traced normal. I.e., Point_At_Trans (norm). Great for sticking
spiky things onto heightfields! Place it in your code where you would
put a typical rotate command.
Ken W.
Post a reply to this message
|
![](/i/fill.gif) |