(I tried to post this in unity answers but It wouldn’t let me post it, and I don’t know why)
Hey, I just started working on a game in unity and came across a problem. I have very little experience with 3d Maths and only barely remember Trig/Highschool maths.
Here is my maths problem:
A = Waypoint
B = Waypoint
The character moves from A to B in a straight line and at a constant speed. However, if the player uses the mouse to drag the character, the character then speeds up until it reaches point Y. At which point it slows back down to its original constant speed.
X = Where the player clicked (dragged)
I know the position of A,B and X.
How would I find the position of Y (in written maths) and how is it done within unity scripting(C# preferred)? Lastly, is there any resources that you can recommend to learn about these things?
Thanks ![]()