Closed eonarheim closed 1 month ago
Move camera underneath a non-moving pointer, check the lastWorldPos is not updated.
lastWorldPos should match the reality of the current pointer, camera and game world.
lastWorldPos
lastWorldPos is only updated on pointer move
Use pointer.lastScreenPos with screen.screenToWorldCoordinates. https://excaliburjs.com/api/class/Screen/#screenToWorldCoordinates
pointer.lastScreenPos
screen.screenToWorldCoordinates
This issue hasn't had any recent activity lately and is being marked as stale automatically.
Steps to Reproduce
Move camera underneath a non-moving pointer, check the lastWorldPos is not updated.
Expected Result
lastWorldPos
should match the reality of the current pointer, camera and game world.Actual Result
lastWorldPos
is only updated on pointer moveEnvironment
Current Workaround
Use
pointer.lastScreenPos
withscreen.screenToWorldCoordinates
. https://excaliburjs.com/api/class/Screen/#screenToWorldCoordinates