Great - Thank you very much. I'll take a look in the mapping library.
Cheers, Thomas
Hans-Christoph Steiner wrote:
There are lots of curve objects in the mapping library for this. The mapping lib works on all 0-1 range, so make your [line] generate a ramp from 0 to 1 in the time you want. Then after the [line], use a curve object. They are named after the shape and types of segment.
shape: sigmoid (S-shaped) seat (like you sit in)
types: breakpoint cubic quartic circular elliptical etc...
I'd start with [exponential_sigmoid]. You'll most likely want a sigmoid shape for the accel/deccel pattern you describe.
.hc
On Mar 16, 2010, at 3:59 PM, Thomas Jeppesen wrote:
Hi guys,
I'm working on a patch (rjdj scene) where I'm moving a little object around on a plane. The object is been given random coordinates which it is supposed to gradually move to in five seconds.
Right now my solution is to bang the x- and y-coordinates into a line-object which works fine, but I'd prefer for the movement to be more "natural". By natural I mean that the object accelerates in the beginning and then decellerates near the end until it comes to a full stop at the exact coordinates that where randomly produced..
I've been trying to get my head around a solution for quite a while now, but unfortunately no luck so far.
I'm sure this must be simple stuff for some of you PD-geniuses out there, and I'm hoping that one of you will stand up and show me how it's done :)
Thanks in advance, Thomas :)
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"A cellphone to me is just an opportunity to be irritated wherever you are." - Linus Torvalds