Zheoni / bevy_pixel_buffer

A library to draw pixels in bevy
MIT License
42 stars 7 forks source link

Mouse Position Example #5

Open bayou-brogrammer opened 1 year ago

bayou-brogrammer commented 1 year ago

Do you have an example using mouse coordinates to draw pixels? I am having issues mapping bevy cursor to position within the image

bayou-brogrammer commented 1 year ago

Figured out the main issue, I was not taking pixel size into account....

Setting pixel size to (1,1) allows for world_to_cursor methods from bevy work lol