Page 1 of 1

global forces

Posted: Mon Jul 18, 2005 8:00 am
by some dude
Is there a way (currently) to add a global force?

I'm thinking something along the lines of gravity making things droop.

Posted: Mon Jul 18, 2005 9:23 am
by some dude
Now that I think about it a bit more I think this is equivalent to asking if there is a way to do iteration, so is there?

Posted: Mon Jul 18, 2005 9:42 am
by lagroue
Iterations can be either enumerated, either recursively described.

Code: Select all

//enumeration
rule FiveSquares {
  SQUARE { }
  SQUARE { x 2 }
  SQUARE { x 4 }
  SQUARE { x 6 }
  SQUARE { x 8 }
}

//recursion
rule Infinity {
  SQUARE { }
  Infinity { x 1 s 0.9 } // move right, and scale down (so that squares get tinier and tinier, and the whole infinity fits in the screen).
}
I don't expect any "gravity" field appearing anytime soon, since any part of the pictures is supposed to be independent of all the rest of the picture. I mean : if a shape falls, then it is below another shape, and thus they are not independant : one is "below" the other.

There is no such things as top, bottom, left or right, tiny or large stuff. This is one meaning of "context free".