Skip to content

How do I use Bevy Mod Picking on glTF objects? #163

Answered by aevyrie
hintron asked this question in Q&A
Discussion options

You must be logged in to vote

You need to mark the actual meshes as pickable. You can do this by querying for meshes that are children of the gltf scene, and marking those entities with the applicable picking components.

This will be made easier, and with an actual example, once the refactor is complete. See here: https://github.com/aevyrie/bevy_mod_picking/blob/fe3135648d4d33c2c9daf7d9afb0df520a980d4f/examples/gltf.rs

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Newbytee
Comment options

@aevyrie
Comment options

Answer selected by hintron
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants