Math Problem - Solved CLOSED

Hi guys,
I’m having trouble calculating a point. Please refer to the attached image for a better understanding of my problem.
I have points A and B. Both of them are vector3.
I am drawing a line between them, but i need to extend this line past point B, to point C. Lets assume that point C distance from point B is 10% of the distance from A to B (It doesn’t necessary need to be a percentage, it could me 10 units of distance, it doesn’t matter).

So, the question again is, how can I calculate vector3 C, when I only have vector3 A and B and the distance past B?

Multiply the delta vector by the desired amount. For example, to double the distance a vector describes, multiply by 2.

1 Like

pointA + ((pointB - pointA) * scalarValue)

3 Likes

works like a charm. Thanks