SlideSurface


Adds velocity to a surface in the given direction. The same velocity will be given to anything on the surface. Syntax:

animID=SlideSurface(surface, norm_vec, speed);

norm_vec: A normalized vector giving the direction for the surface to move.

speed: This is the flex speed for the movement.

Remember that the velocity given to an object on the surface does not have to match the movement of the surface. For example, a horizontal surface cannot move up. But, that upwards velocity will be given to the things on the surface - creating a sort of trampoline effect.