evaera / matter

A modern ECS library for Roblox.
https://eryn.io/matter/
MIT License
144 stars 34 forks source link

mouse highlight incorrectly inferring character when zoomed in #99

Open Ukendio opened 8 months ago

Ukendio commented 8 months ago

A lot of times it will incorrectly highlight another instance due to the character always overlapping the mouse, this is a consequence of having merged this in #68.

Repro:

  1. Play Attack Of the Killer Roomas
  2. Zoom in
  3. Enable debugger
  4. Try hover over anything.

A simple fix could be checking whether the distance between the camera and the head position is close enough, in the case that it is, add the character for the raycasts filter.

jackTabsCode commented 8 months ago

I do not think the debugger should be hardcoded to ignore the character (or anything) in any case. This should be configurable