-
1. Re: how this app is done?
artguate Feb 4, 2011 6:54 AM (in response to polatkanfatih)With a lot of hard work.
Now seriously, I doubt there is a physics engine behind that, it all looks like pre-established tweens, no matter how much you jiggle it, or how fast, it swings at the same rate. I would also not use a physics engine, it would be somewhat pointless, alot more work and people will think it's behaving like real life with a simple tween.
Nice app.
-
2. Re: how this app is done?
kglad Feb 4, 2011 6:57 AM (in response to polatkanfatih)i don't see any physics. a pendant always drops to the bottom even when the center of gravity is not at the pendant.
-
3. Re: how this app is done?
polatkanfatih Feb 4, 2011 7:01 AM (in response to polatkanfatih)what about the formation of beads? how can they be keep in that formation always, i mean they are always on the rope.....
-
4. Re: how this app is done?
artguate Feb 4, 2011 7:28 AM (in response to polatkanfatih)With some custom layout engine.
The concept in itself is actually simple, you just determine the correspoding x and y based on some rules. Defining the acurate rules is what takes time.
The concept is not all that different from when you wish to center and object on the screen, it's just that in this case you have more factors to influence your x and y, than just the object size and screen size.
Are you expecting some sample code?
-
5. Re: how this app is done?
polatkanfatih Feb 4, 2011 7:42 AM (in response to artguate)i just dont know how to make that rope layout. i think that maybe it can be done with a trigonomik function, with a sinusoidal line function.......
what do you think?
-
6. Re: how this app is done?
artguate Feb 4, 2011 7:51 AM (in response to polatkanfatih)You are on the right track.
You need to create a function that can draw the rope first, when you have that, you have a good part of your rule. Elipses are a bit tricky but nothing that there isn't plenty of info.
For example:
http://en.wikipedia.org/wiki/Ellipse#General_parametric_form
-
7. Re: how this app is done?
polatkanfatih Feb 4, 2011 8:48 AM (in response to artguate)thanks very much guys, i appreciated yiu very much.... i will try that...;)



