Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add screen/world point transformation helpers #620

Closed
dantheman3333 opened this issue Oct 4, 2020 · 5 comments
Closed

Add screen/world point transformation helpers #620

dantheman3333 opened this issue Oct 4, 2020 · 5 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy

Comments

@dantheman3333
Copy link

Bevy should include some helpers similar to Unity's Camera.ScreenToWorldPoint and Camera.WorldToScreenPoint

@GabCampbell GabCampbell added C-Feature A new feature, making something new possible A-UI Graphical user interfaces, styles, layouts, and widgets labels Oct 5, 2020
@GabCampbell
Copy link
Contributor

Hey Thanks for the suggestion? Do you have a suggestion on how it could be integrated to bevy?

@smokku
Copy link
Member

smokku commented Oct 5, 2020

There is a raycasting code in https://github.com/aevyrie/bevy_mod_picking - maybe it could be exposed for stand-alone use.

@dantheman3333
Copy link
Author

Hey Thanks for the suggestion? Do you have a suggestion on how it could be integrated to bevy?

No problem. I started to look into it last week but I've been really busy with work/life, so I wanted to open it up to discussion now in case someone as already implemented it in their games or have experience with it.

@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy labels Feb 17, 2021
@aevyrie
Copy link
Member

aevyrie commented Apr 2, 2021

See #1258 for world_to_screen.
#1799 would need to be extended with a function that accepts z-depth to return a Vec3 in world space instead of a line.

@tim-blackbird
Copy link
Contributor

I think this can be closed since #6126 landed.

@mockersf mockersf closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy
Projects
None yet
Development

No branches or pull requests

7 participants