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 the RayMap resource and use it in rapier and mod_raycast backends #289

Merged
merged 9 commits into from
Feb 23, 2024

Conversation

bonsairobo
Copy link
Contributor

@bonsairobo bonsairobo commented Dec 14, 2023

The goal is to make it easier to build raycasting backends and to make it possible to easily get a Ray while building interactive entities that handle picking events.

This map will hold a mapping from (camera entity, pointer id) to Ray. This will
be created before any backends run. It will be available for use by backends and
picking event handlers.
@bonsairobo
Copy link
Contributor Author

BTW @aevyrie, might be worth adding this to the changelog:

- Fixed: Ray construction now respects DPI / window scale

Ideally there would also be an example that shows this is fixed. Up to you if you want that to happen in this PR or later. I can help if you like.

@aevyrie aevyrie merged commit f8e0484 into aevyrie:main Feb 23, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants