decMove

decMove moves all the points in a skeleton to a specified point with a specified time gap between movements all while deaccelerating the speed.

version(!DLL)
pragma(inline)
void
decMove
(,
uint tbf
,
shared ref Skeleton tomove
,
real speed
,
real accdec = 0
)

Parameters

moveto Point

A point specifying the total amount to move along each axis.

tbf uint

The time in miliseconds between 'frames'(a frame is one section of moving points before waiting a bit). This gives an illusion of continuous motion.

tomove Skeleton

The skeleton being moved.

speed real

The original speed at which the skeleton moves.

accdec real

The amount to decrement the speed by each frame.

Return Value

Type: void

none

Meta