As a prerequisite. This is not for a home assignment, this is a problem I've encountered while programming a game. I wasn't sure if this was outside the bounds of the intended purpose of this site. If so, please feel free to disregard this thread.
The problem is this:
I need a function that:
a) Describes a distance between a and b
b) I need the object that is traveling this distance to accelerate and decelerate along the curve so that it hits 0 speed in a and in b and so that the graph that is representing the speed of the object is bell shaped.
c) I need the bell shaped curve to vary between distances. Short distances means low curves. Long distances means high curves. And maybe an inclusion of a constant that determines the flatness of the curve for testing purposes.
Again, I'm sorry if I posted this in the wrong place. All help is greatly appreciated.
The problem is this:
I need a function that:
a) Describes a distance between a and b
b) I need the object that is traveling this distance to accelerate and decelerate along the curve so that it hits 0 speed in a and in b and so that the graph that is representing the speed of the object is bell shaped.
c) I need the bell shaped curve to vary between distances. Short distances means low curves. Long distances means high curves. And maybe an inclusion of a constant that determines the flatness of the curve for testing purposes.
Again, I'm sorry if I posted this in the wrong place. All help is greatly appreciated.