Motion - In Between
Blitz3D Forums/Blitz3D Programming/Motion - In Between
| ||
. |
| ||
100/30 = distance along x moved per frame. |
| ||
Steps = (EndingX-StartingX)/ FrameDesire Then u can use the Steps of any logic u want. Say u want to know where it is in frame 20. Position = Steps * 20 there's all sorts of ways u can do it and use it. What are u doing it for exactly? |
| ||
Interpolation ... you can use basic algebra and cartesian plane type stuff to emulate Flash in between keyframes type behavior. |
| ||
. |
| ||
There is a really good spline motion demo in the example that game with Blitz 3d. It even has tension bias and continuity to make the motion ease in and ease out. Actually that's a little tricky to understand if you never used those splines before. Basically, a tension of 1 will give you a nice ease in ease out look. The rest is pretty easy to understand. |
| ||
. |
| ||
. |