Always face center-line/ Magnetic tool
-
here's a fun bit of code...
now it does what the OP asked...
look below...
john
EDIT: changed back to original as my counter was failingBETTER CODE BELOW...
-
@unknownuser said:
the other thing I was wondering if arrow keys can be used to move the dc's 'attractor'
You need a Tool to get the key-presses, then read-update-write the position values depending on which key was pressed, then redraw the DC.
This file was made specifically for Jeff's DC Magnet Beer model.
-
cheers Jim,
that works and is much cleaner than i was attempting...what other thing can we do with ruby to manipulate DC's?
I'll see if I can turn this into a pick point version...
john
-
Hey, I want in on the fun too.
-
@sam yours looks cooler than my effort...
-
-
-
Next step is multi- attractors
-
@gilles said:
Next step is multi- attractors
heh.. yeah.. i thought about it but it would be really weird to do in DC..
that kind of math is probably possible in DC but once things start getting complex, it's either hard to keep track of or you end up with really long/weird formulas that are equally hard to keep track ofi guess first you'd have to apply a 'strength' to a single magnet (so far, these aren't really magnets.. the objects just all point at the 'magnet' but the attractor isn't actually pulling on them)
then make two of those magnets and let the strengths fight each other
-
-
@jolran said:
Interesting!
I'm working on a parametric modeler that could hopefully(one day ) do this sort of things.
I was able to make this urban plan combining Jeff's Beer tool and this new Modelur Pre Beta, urban design plugin which in combination with a 'height-' 'and a build-up-area'-map really awesomefies Jeff's beer tool.
Click on the image for a larger one!
-
nice Philip
Advertisement