[SOLVED] Can fracture "Broken" be set within Update()?


Recommended Posts

using C#, I have a fracture body and when I use "bf.Broken = true;" within Init() the body fractures fine. 

However if I use "bf.Broken = true;" within Update() the fracture body disappears. 

Is there a proper way to break within Update() or is there some other alternative? I am trying to code specific conditions for the body to meet before it fractures [basically if, then break]. 

Link to post

Figured it out. If anyone else runs into this issue you have to make sure you use "bf =new BodyFracture(mesh);" and all the other bf related parameters within the UPDATE() instead of within the INIT().

Link to post
  • silent changed the title to [SOLVED] Can fracture "Broken" be set within Update()?