DinoFracture 2.11.1
A Dynamic Fracture Library
Loading...
Searching...
No Matches

DinoFracture.FractureBuilder Class Reference

Entry point to create fracture pieces from a mesh. More...

Static Public Member Functions

static MeshValidity ValidateMesh (UnityEngine.Mesh mesh, out MeshTopologyError outErrors)
 Checks a mesh for topology errors.
 
static List< EdgeErrorGetMeshEdgeErrors (UnityEngine.GameObject gameObject, UnityEngine.Mesh mesh)
 Returns a list of edges that have mesh topology problems.
 
static AsyncFractureOperation Shatter (ShatterDetails details)
 Start a shatter operation.
 
static AsyncSliceOperation Slice (SliceDetails details)
 Start a slice operation.
 

Properties

static bool DisableMultithreading [get, set]
 If set to true, multithreading will be disabled completely. Normally it is enabled, even for synch fractures. But it needs to be disabled on platforms that don't support threads.
 

Detailed Description

Entry point to create fracture pieces from a mesh.

Member Function Documentation

◆ Shatter()

static AsyncFractureOperation DinoFracture.FractureBuilder.Shatter ( ShatterDetails details)
inlinestatic

Start a shatter operation.

Parameters
detailsDetails of the operation
Returns
A wait-able object that tracks the result of the operation

◆ Slice()

static AsyncSliceOperation DinoFracture.FractureBuilder.Slice ( SliceDetails details)
inlinestatic

Start a slice operation.

Parameters
detailsDetails of the operation
Returns
A waitable object that tracks the result of the operation