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

Demonstrate how to use Camera::viewport_to_word #7177

Closed
lewiszlw opened this issue Jan 13, 2023 · 1 comment · Fixed by #7179
Closed

Demonstrate how to use Camera::viewport_to_word #7177

lewiszlw opened this issue Jan 13, 2023 · 1 comment · Fixed by #7179
Labels
A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples

Comments

@lewiszlw
Copy link
Member

What problem does this solve or what need does it fill?

Seems Camera::viewport_to_word is similiar to bevy_mode_raycasting. I prefer engine built-in functionality over third-party plugins. But there is no any example to demonstrate how to use it.

What solution would you like?

Create an example to demonstrate how to use Camera::viewport_to_word.

@lewiszlw lewiszlw added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Jan 13, 2023
@tim-blackbird
Copy link
Contributor

Camera::viewport_to_word does return a ray, but Bevy does not have a raycasting API yet.
It does deserve an example though. I'll make one.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples A-Math Fundamental domain-agnostic mathematical operations and removed C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Jan 14, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 11, 2023
Fixes #7177

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this issue Jan 9, 2024
Fixes bevyengine#7177

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Math Fundamental domain-agnostic mathematical operations A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants