Set Interpolate
Switches the interpolation mode to a target fps or smoothing value.
Syntax
store.dispatch({ type: "SET_INTERPOLATE", payload: playbackMode });
Parameters
playbackMode
The mode of interpolation. A true
value represents smooth interpolation, while a false
value represents physics/no interpolation. A numerical value represents fps interpolation.
Examples
Switches the interpolation mode to 60 fps.
store.dispatch({
type: "SET_INTERPOLATE",
payload: 60
});