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

math.interpolateEntityPosition

Call Signature

interpolateEntityPosition(entity): Vec3

The position of an entity interpolated to this frame, using the current render partial ticks.

Parameters

entity

Entity

The entity to interpolate.

Returns

Vec3

The entity's position this frame, or null when no entity was given.

Call Signature

interpolateEntityPosition(entity, partialTicks): Vec3

The position of an entity interpolated to this frame.

Parameters

entity

Entity

The entity to interpolate.

partialTicks

number

The partial ticks, as given by a render event.

Returns

Vec3

The entity's position this frame, or null when no entity was given.

Example

Last updated