bevy_mod_raycast
bevy_mod_raycast copied to clipboard
Unofficial plugin for raycasting in Bevy
**bevy_mod_raycast version**: 0.3 **Bevy version**: 0.6 **OS & graphic stack**: ArchLinux kernel 5.16.2 ## Problem This is a copy of an upstream bug reported in bevyengine/bevy#4294. When I update an...
When the raycast source isn't a camera, and you mess up where it's pointing, it would be useful to have a debug cursor on that source that points in the...
thread 'main' panicked at '$state_name conflicts with a previous access in this query. Shared access cannot coincide with exclusive access.' I believe this bevy commit introduced the problem: https://github.com/bevyengine/bevy/commit/9657f58f6a84b82f508cf5f09765db3d26d139ff
2d: Circle, Box, Capsule 3d: Sphere, Cube/box, Capsule Additionally, it would be nice if they could rotate and stuff, and if it would be possible for these shapes to merge....
Create tests to check common cases that are easy to verify, e.g. fire a ray from each side of a box and make sure the intersection and normal are correct.
With the debug plugin it shows an arrow on top and on the sides: https://i.imgur.com/NuWP61u.png (and returns Some) on the bottom it doesn't seem to: https://i.imgur.com/DUajQG4.png I did some investigating...
Further accelerate ray casting performance with some BVH/space partitioning # Thoughts on how to accomplish Using bounding volumes, place entities into an octree. Maybe instead of a bounding sphere, find...
Use events to trigger ray casts.
Instead of returning `Option`, it's better to just return a slice. If it is empty, then it means that there are no intersections. I believe this approach is more common.
**Problem description** Currently intersection inserted into a separate entity: https://github.com/aevyrie/bevy_mod_raycast/blob/5949fc7f021e6900c3d14b4e6f22ef4426489441/src/lib.rs#L517-L519 But this behavior is not very expected. In a game with menu, users will need to remove such entities manually...