[][src]Function rg3d::utils::mesh_to_static_geometry

pub fn mesh_to_static_geometry(mesh: &Mesh) -> StaticGeometry

Small helper that creates static physics geometry from given mesh.

Notes

This method bakes global transform of given mesh into static geometry data. So if given mesh was at some position with any rotation and scale resulting static geometry will have vertices that exactly matches given mesh.