how can i load my gltf scene and gracefully extract some meshes from it as colliders?
i got a test map, and right now i want "collision" to be my collision trimesh to put into physics
i'm not using bevy rapier integration, but i am using rapier
#Get Trimesh of specific GLTF mesh by name
7 messages · Page 1 of 1 (latest)
I am also interested in this
you could use bevy_scene_hook to work on scene entities by name
The entity will have a Handle<Mesh> component which you can then use on Asset<T> to get a Mesh.
Then you would need to convert this to a Trimesh manually, using mesh attributes and building it in the format rapier wants
regarding this, i've never found a way to remove the collider mesh from the scene without taking a bazillion Asset<T> parameters into my system (gltf, mesh, scene, node,..)
because after like 15 parameters, IntoSystem is not implemented anymore
for functions
if you use a #[derive(SystemParam)] struct you can take in as many params as you wish