Topic: Curve algorithms (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: :morF |
posted 06-22-2008 13:51
I've got a bit of a strange request... I'm trying to work out an algorithm to calculate a set of points along an acceleration/deceleration curve. The curve itself I suppose could be your average exponential curve up to a set point after which speed is constant. My problem is the algorithm to let me work out the points along the line so I can work out the values I'll need to feed into the program that sets the acceleration at those points. |
Paranoid (IV) Inmate From: Norway |
posted 06-22-2008 14:22
Not 100% sure what you want : a curve accelerating, or one accelerating then decelerating, ... one whose speed max out at some point. |
Maniac (V) Mad Scientist From: :morF |
posted 06-22-2008 15:16
Something like this for acceleration: |
Maniac (V) Mad Scientist From: |
posted 06-22-2008 16:09
Regular expontial and rotate/offset? |
Maniac (V) Mad Scientist From: :morF |
posted 06-23-2008 06:56
Uh-huh... |
Maniac (V) Mad Scientist From: |
posted 06-23-2008 08:12
// define the ceilings |
Paranoid (IV) Inmate From: Norway |
posted 06-23-2008 08:58 |
Maniac (V) Mad Scientist From: |
posted 06-23-2008 10:05
What Poi said. But he threw in some trig, which is prolly a damn good idea. It's prolly easier to grab a quarter circle for squashing than do the post-transform junk that I vaguely tossed out. |
Maniac (V) Mad Scientist From: :morF |
posted 06-24-2008 13:46
With the able assistance of one of my co-workers (who was a mathematician before he decided to become a developer) I wrapped my head around what you guys have been saying, and I get it. I understand now how I can create my bounded curve and get what I need out of it. Thanks! |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 06-25-2008 18:33
Somebody knock on my cell? |
Maniac (V) Inmate From: The Pool Of Life |
posted 06-25-2008 22:40
~runs in stage left, thwacks Petskull with a wet Trout, escapes through previously unseen trap door~ |