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
New forum topics are on pause. Signed-in members can reply to existing topics. Contact ScriptSpot if you need help.
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?

Comments (2)
Comment policy
Awesome.
Thank you Branko,
I'll check this out right now.
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)