Bezier spline based animation controller

Community Forums/Showcase/Bezier spline based animation controller

Jay Kyburz(Posted 2005) [#1]
Hey all,

Here is a Bezier spline based animation controller I've been working on.

To use:
1. Create a controller
2. Add any number or keyframes or spline knots (They currently need to be added in time order)
3. Set the controllers Value property to a Varptr of the floating point value you want to move on the spline.
4. Call Update() on the controller every frame and pass through how much time has passed since the last update.

My example program below is not very exciting but it shows the controller working.

There are many possible optimizations that can be made but I probably won't bother making them unless I find I need more than a few hundred of them running at once in my game.

This is the first code I have shared here on the forums. Please let me know if it sux so I can rip it down before to many people see it. :)