Skip to content

drawnPosition

drawnPosition(game, e): object

Where the renderer draws an entity this frame: Position, or between its last two fixed-tick positions for Interpolate entities. Follow this with the camera, or a smoothly drawn player looks like it shakes.

Game

number

object

x: number

y: number