Skip to content

Commit

Permalink
Update Fracture.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalOath committed May 12, 2023
1 parent 948964a commit 4c1b24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/Fracture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void ComputeFracture()
// Create a game object to contain the fragments
this.fragmentRoot = new GameObject($"{this.name}Fragments");
//this.fragmentRoot.transform.SetParent(this.transform.parent);
this.fragmentRoot.transform.SetParent(null);

// Each fragment will handle its own scale
this.fragmentRoot.transform.position = this.transform.position;
Expand Down Expand Up @@ -216,7 +217,6 @@ private GameObject CreateFragmentTemplate()

if (fractureOptions.destroyFragments)
obj.AddComponent<Destroyer>().delay = fractureOptions.destroyAfterSeconds;
//Destroy(obj, fractureOptions.destroyAfterSeconds);

// Update mesh to the new sliced mesh
obj.AddComponent<MeshFilter>();
Expand Down

0 comments on commit 4c1b24b

Please sign in to comment.