Hi! I have a very simple mesh I made in Blender and imported as a gltf. I want to use the "trimesh_from_bevy_mesh" feature from XPBD to make a collider, but I'm not sure how to grab it.
commands.spawn((
SceneBundle {
scene: asset_server.load("models/triangle_terrain.glb#Scene0"),
..default()
},
RigidBody::Static,
Position(Vec3::Y),
Collider::trimesh_from_bevy_mesh(&shape).unwrap(),
));```
Here is the spawn command I have so far. The **&shape** should be the mesh from "triangle_terrain", but I am not sure how to use it here.
If there is a better way of doing specifically triangle mesh terrain, let me know! Otherwise, I'd like to try and attempt this.