Le 02/01/2013 12:34, Alexandros Drymonitis a écrit :
But if I reset them, aren't they going to set their positions to zero?
the initial position (so the reset position) is a parametter that you can set at masses creation : [mass foo 1 1] will be reset at position X
Also, only the second mass is moving, left inlet of [link] is attached to a fixed point, so how can I send force to the second [mass] via [link]?
send a force message to the mass inlet : you can have many things connected to a mass inlet...
Right inlet won't give any results. What do you mean exactly by 'mass parameter'? Is it for [mass] or [link]? Could you give an example?
i don"'t really know what you want to do, but here is an example.
cheers c
Thanks
On Wed, Jan 2, 2013 at 1:16 PM, Cyrille Henry <ch@chnry.net mailto:ch@chnry.net> wrote:
hello, after setting a mass position (in a not-physical way), you have to reset forces (in both link and masses). If you want to set initial position, you better have to use the mass parameter. otherwise, sending force is the "correct" way move masses. cheers Cyrille Le 02/01/2013 11:48, Alexandros Drymonitis a écrit : I'm applying physical modeling to some visuals with pmpd's objects. I'm facing a problem with setting the position of [mass] sending it [setX $1(. [mass] will go to that position indeed, but as soon as I turn [metro] on it tends to go back to the previous position and then return to the position currently set. Even if I send the same position number to [link], it shows the same behavior. The patch is as follows (connections from [metro] and [setX $1( actually go to left inlets): [line 0 5] [metro 5] [setX $1( | /| / | / | / | / | / | / | / | / | / [link]x[mass] Any ideas on how to overcome this? p.s. happy new year! _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list