View Full Version : QUICK URGENT question
zoster 07082007, 02:48 PM howdy,
i have this small dilemma:
if i have 2 points on a wavy curve, and i want to find out the coordonates of the point that is at the same curve lenghth from the other 2, and sits on the curve, what could i do?
help would be very appreciated


BadG3r
07092007, 08:57 PM
ok... if I understood you right. wavy curve. on the curve are 2 points. between the points with same distance and on the curve too is another point and you like to get the coordinates in world space.
if you know where on the curve the point is, you could use pointOnCurve command.
zoster
07092007, 11:58 PM
no, i don't have that 3rd point..
trancor
07102007, 12:07 AM
Yeah, I didn't really understand that either.
pointPosition or pointOnCurve of the two different points, to find the distance between the two points use mag 
if you have 
vector point1
vector point2
use 
float $mag=mag(point1point2);
This will return the distance between the two points, but as a linear line between them.
CGTalk Moderation
07102007, 12:07 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©20002015, Jelsoft Enterprises Ltd.