ast3r3x
2009-04-12, 21:32
I'm working on an animation for one of my classes and I'd like to move my objects along a bezier path so it looks better than just a line. However I haven't really found a way to do this without using (and I don't know java super well) java3d stuff.
Even if there is a way though I'm not exactly sure it would even solve my problem. Since I need to move things along the curve/path, I'd need to be able to find points at certain intervals. Sure, the beginning, end, and midpoint would be easy to do. However is there an easier way to find like 11% (random) of the way through the path other than doing midpoints of midpoints and working your way down to whatever interval you want?
I guess my real question other than if someone knows an easy way in java to move an object along an bezier path, is how do you figure out a point 11% (whatever) along a line between two points?
Even if there is a way though I'm not exactly sure it would even solve my problem. Since I need to move things along the curve/path, I'd need to be able to find points at certain intervals. Sure, the beginning, end, and midpoint would be easy to do. However is there an easier way to find like 11% (random) of the way through the path other than doing midpoints of midpoints and working your way down to whatever interval you want?
I guess my real question other than if someone knows an easy way in java to move an object along an bezier path, is how do you figure out a point 11% (whatever) along a line between two points?