#Get Trimesh of specific GLTF mesh by name

7 messages · Page 1 of 1 (latest)

inner swallow
#

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

mint rover
#

I am also interested in this

fallen spire
#

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

inner swallow
#

because after like 15 parameters, IntoSystem is not implemented anymore

#

for functions

fallen spire