For the complete documentation index, see llms.txt. This page is also available as Markdown.

math.interpolateLastTickPos

interpolateLastTickPos(pos, lastPos): number

Interpolates a single coordinate between its previous and current tick value, using the current render partial ticks.

Parameters

pos

number

The coordinate as of this tick.

lastPos

number

The coordinate as of the previous tick.

Returns

number

The coordinate where it should be drawn this frame.

Remarks

Use this when you track positions yourself. For entities prefer interpolateEntityPosition.

Last updated