Home   Help Search Login Register  

Author Topic: golden ratio arty?  (Read 945 times)

0 Members and 1 Guest are viewing this topic.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
golden ratio arty?
« on: 07 Jun 2008, 02:42:33 »
greetings,

how would i make arty fall in the Fibonacci sequence?





A Fibonacci spiral created by drawing arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34....

thx


Offline Rommel92

  • Members
  • *
Re: golden ratio arty?
« Reply #1 on: 07 Jun 2008, 03:50:55 »
Some complex math for sure... do-able, but Im not sure how.

Code: (Area.sqf(Edited)) [Select]
while {_i < 90} do {
_x = (_howBigA * (sin _i));
_y = (_howBigB * (cos _i));
_x_rot = _xPos + _x*(cos _angle) - _y*(sin _angle);
_y_rot = _yPos + _x*(sin _angle) + _y*(cos _angle);
_k = createVehicle ["Danger",[_x_rot, _y_rot,0], [], 0, "NONE"];
_m = createMarker [format ["Marker" + str _i],[ _x_rot, _y_rot,0]];
format ["Marker" + str _i] setMarkerType "Dot";
_k setDir _i;
format ["Marker" + str _i] setMarkerDir (_i - _angle);
_i = _i + (90/_tablesC);
};

Might get you started, not sure.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: golden ratio arty?
« Reply #2 on: 07 Jun 2008, 07:27:57 »
thx for the reply rommel,

i tried it in the editor.. nada..
i can see it is supposed to put marker dots on the map..

b.t.w... great job on the ai script.. something arma has needed for a while.

edit:
@rommel
i would like to see the script you wrote work.. if possible.. it would be nice to have a 'map marker template' to try new equations on.
once i figure out how to add them...lol 
« Last Edit: 07 Jun 2008, 09:54:57 by loki72 »