excaliburjs / Excalibur

🎮 Your friendly TypeScript 2D game engine for the web 🗡️
https://excaliburjs.com
BSD 2-Clause "Simplified" License
1.83k stars 192 forks source link

lastWorldPos should update when camera moves under pointer #3078

Closed eonarheim closed 1 month ago

eonarheim commented 6 months ago

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 move

Environment

Current Workaround

Use pointer.lastScreenPos with screen.screenToWorldCoordinates. https://excaliburjs.com/api/class/Screen/#screenToWorldCoordinates

github-actions[bot] commented 4 months ago

This issue hasn't had any recent activity lately and is being marked as stale automatically.