SA-MP Forums Archive
Equation problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Equation problem (/showthread.php?tid=598209)



Equation problem - Dutheil - 09.01.2016

Hi,

I would like to solve an equation which I am stuck.

Here a scheme of my problem, I want to find the coordinates of points A, B and C according to the specified coordinates :




Re: Equation problem - AbyssMorgan - 10.01.2016

Hmm, get point about point and rotation ?
GetPointInFront(2D/3D)

Or a point between two points on a percentage distance away
GetPointFor2Point(2D/3D)

https://github.com/AbyssMorgan/SA-MP...SAM/3DTryg.inc


Re: Equation problem - Slice - 10.02.2016

Just go from the middle of the 3 points and use sin/cos to find the rest.

Look at GetXYInFrontOfPlayer on how to do that.