POV-Ray : Newsgroups : povray.off-topic : Math question (inside box) : Re: Math question (inside box) Server Time
28 Jul 2024 22:17:56 EDT (-0400)
  Re: Math question (inside box)  
From: Patrick Elliott
Date: 6 Aug 2013 01:40:10
Message: <52008c3a@news.povray.org>
On 8/5/2013 9:00 PM, Patrick Elliott wrote:

> avPos = llDetectedPos(0);
> cPos = llGetPos(0);
> ab = llGetAngleBetween(avPos, cPos);
> TestDistance = ???(ab) * 5;

Range = 5;
TestDistance = (Range - x * cos(ab)))/sin(ab);

So.. How do I get that to make a "wall" instead of just a 2D line? Use z 
in a second one, then check both?

Uh, coordinate system they use is Z = up.

No, wait, that just give me a plain, without telling me if its inside 
the box on that plane.. Sigh.. Right back to having to test if its in 
the box... Suppose, combining the two..

:head-> desk, head-> desk, head-> desk, head-> desk, head-> desk, ouch!: lol


Post a reply to this message

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