-
The readme states this as a feature of the plugin: "Mouse intersection coordinates in world space." With what code can I get the Vec3 coordinates of the mouse intersection in world space? |
Beta Was this translation helpful? Give feedback.
Answered by
aevyrie
Jun 21, 2022
Replies: 1 comment 1 reply
-
The plugin is built on top of Note, you will need to use query: Query<&Intersection<PickingRaycastSet>> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
egol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The plugin is built on top of
bevy_mod_raycast
, which provides that functionality. See here: https://github.com/aevyrie/bevy_mod_raycast/blob/0a5d1e3334285eaf85e97adc28b14cbb50ab1b48/examples/minimal.rs#L69-L78Note, you will need to use
bevy_mod_picking
'sPickingRaycastSet
type here, or: