load_from_path

Function load_from_path 

Source
pub fn load_from_path(
    path: impl AsRef<Path>,
    converter: &MeshConverter,
    scale: Vector<f32>,
) -> Result<Vec<Result<LoadedShape, MeshConverterError>>, MeshLoaderError>
Expand description

Loads parry shapes from a file.

§Parameters

  • path: the file’s path.
  • converter: controls how the shapes are computed from the content. In particular, it lets you specify if the computed SharedShape is a triangle mesh, its convex hull, bounding box, etc.
  • scale: the scaling factor applied to the geometry input to the converter. This scale will affect at the geometric level the LoadedShape::shape. Note that raw mesh value stored in LoadedShape::raw_mesh remains unscaled.