Placed object at specified distance

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?

 

AttachmentSize
distance.png30.28 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

Awesome. Thank you

Awesome.
Thank you Branko,

I'll check this out right now.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

barigazy's picture

...

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)

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.