SA-MP Forums Archive
How to make this (with math functions) - 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: How to make this (with math functions) (/showthread.php?tid=544302)



How to make this (with math functions) - Banditukas - 01.11.2014



There is in left corner player 1 and in right corner 2. I want to make a magic wand and make a object round like this.


Re: How to make this (with math functions) - Beckett - 01.11.2014

I don't seem to understand.


Re: How to make this (with math functions) - ikkentim - 01.11.2014

A 3D spriral?

****** for "3d spiral formula"

Didn't do much research, but lets say you want it to start at point A, going to point B

You calculate a straight line between point A and B, at certain intervals on that line(point C) you calculate an offset using either sine/cosine(offset D), add C + D and you have your position where you want to place an object.


Re: How to make this (with math functions) - Banditukas - 02.11.2014

http://www.henleygraphics.com/spiral.htm