View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-14-2022 , 15:43   Re: [Maths] Given 2 points, retrieve a point between them
Reply With Quote #2

Quote:
Originally Posted by Blinx View Post
Hey there, I'm having trouble with a maths problem that I don't know how to put into code, hopefully this diagram helps explain what I'm looking for.



I have 2 points, Point A and Point B, I want to travel along the line between them for a set amount of distance and then retrieve Point C. I can get the angle of this line no problem, I just don't know how to travel a set distance along it. It'd be like a TraceRay except you use a vector and travel along it a fixed distance and retrieve the end point.

Thanks for your time.
I don't understand about this topic at all, but through sheer copy paste power my Useful Commands plugin does something almost identical:

Teleports you to a target position on where I aim, and if you're stuck, teleports you backwards across the angle of my aim until you're not stuck

https://github.com/eyal282/Useful-Co...fulCommands.sp

sm_blink
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline