So I have object A and object B. I want to create a point 'the yellow dot' at a distance of 25 units from object A, using the vector created between object A & B. How do I do that?

Forum topic · Scripts Wanted
By JokerMartini · 2014-02-02
So I have object A and object B. I want to create a point 'the yellow dot' at a distance of 25 units from object A, using the vector created between object A & B. How do I do that?

JokerMartini · 2014-02-02
Awesome.
Thank you Branko,
I'll check this out right now.
barigazy · 2014-02-02
fn gen3rd pA pB offset: = (pA+(normalize (pB-pA))*offset)
p1 = point pos:[5,5,0] size:5 wirecolor:blue
p2 = point pos:[-5,-5,10] size:5 wirecolor:red
p3 = point pos:(gen3rd p1.pos p2.pos offset:25) size:5 wirecolor:yellow
print (distance p1 p3)