SwInterpolator
From SWWorkshop
For example we are on X0 position and want to go X1 position in 10 seconds. So how to calculate our position in a specific time.(No accelearation). In Java3D below interpolation exist. I try to make simalar api.
Java3D
- Interpolater
- ColorInterpolator
- SwitchValueInterpolator
- TransparencyInterpolator
- TransformInterpolator
- PositionInterpolator
- RotationInterpolator
- ScaleInterpolator
- PathInterpolator
- PositionPathInterpolator
- RotationPathInterpolator
- RotPosPathInterpolator
- RotPosScalePathInterpolator
You can use SWEngine interpolation module for color, position, scale and rotation operations.
Functions
int swInterpolaterCreate(float initVal,float endVal,float totalTime); void swInterpolaterDestroy(int id); boolean swInterpolaterIsFinished(int interpolaterID); void swInterpolaterStart(int interpolaterID); float swInterpolaterGetValue(int interpolaterID);
