aevyrie / bevy_mod_raycast

A little mesh raycasting plugin for Bevy
https://crates.io/crates/bevy_mod_raycast
MIT License
320 stars 93 forks source link

Viewport offset ignores window scale factor #93

Closed bardt closed 1 year ago

bardt commented 1 year ago

Steps to reproduce

  1. Run mouse_picking example on a high DPI display
  2. Try hovering the ball and the space around it

Expected behavior

Ray starts from where the mouse cursor hovers the ball

Actual behavior

Ray isn't drawn when hovering the ball. It seemingly unpredictably is drawn when mouse cursor is positioned to the bottom-right from the ball.

Comments

This effect only occurs when the camera viewport is offset.