// Copy from public void CopyFrom(RFFragmentProperties fragmentProperties) { colliderType = fragmentProperties.colliderType; sizeFilter = fragmentProperties.sizeFilter; decompose = false; removeCollinear = fragmentProperties.removeCollinear; layer = fragmentProperties.layer; }
/// ///////////////////////////////////////////////////////// /// Constructor /// ///////////////////////////////////////////////////////// // Constructor public RFDemolitionMesh() { amount = 15; variation = 0; depthFade = 0.5f; contactBias = 0f; seed = 1; useShatter = false; meshInput = MeshInputType.AtDemolition; properties = new RFFragmentProperties(); runtimeCaching = new RFRuntimeCaching(); Reset(); shatterMode = 1; innerSubId = 0; compressPrefab = true; cacheRotationStart = Quaternion.identity; mesh = null; rfShatter = null; }