Hi folks, I’m attempting to make shatter-able glass, In playing around with the fractured mesh, whenever I start play, the fractured glass just crumbles to the floor. After much research I learned about the physics fields and anchor in particular. Every video I see just slots the base anchor on and it seems to work. For me, whenever I add the field, even just on a tiny bit of the corner, it renders the whole geometry collection unable to fracture now.
Any help would be incredible!
Hey there ShinobiFitness, thank you for posting.
One of the places I would check would be in the Content Examples project found in the Sample section of the Marketplace.
Not only will you get a very good rundown of what Chaos Destruction expects, you will also get the chance to try out the other parameters of Chaos. You’ll learn about field systems, different types of fractures, cluster groups, its actually a really fun project to just explore and watch how everything works. It even comes with some documentation for later reference.
I hope this helps and I hope you get the chance to check out this amazing project.
Hi @Polite_Muon, thanks so much for the reply!
I have actually done exhaustive research on the subject, including that sample.
It’s strange, the issue was only persisting with bullets from the default first person, but if I shot a block with physics into it, it broke. I can only assume it’s because the bullets aren’t usable with physics.
My main struggle now is trying to delete my normal glass mesh and make the geometry visible and smash when impacted. Seems needlessly complex!
Thanks again for taking the time though.
Hi
When using an anchor, the geometry collection will become “kinematic” or “static”
in that case it can only detect collision with “dynamic” physics objects but will ignore other kinematic or static ones
What I think is happening in your case, is that the bullet from the default first person may be using projectiles which which are not “dynamic” physics object
In 5.0 the way of fixing that is to trace a line from the weapon that will find the intersection point of the geometry collection you want to destroy
Once you have the point you can spawn a external strain / force field to destroy the geometry collection
5.1 will provide new ways to make that easier to deal with that
Hope this helps
Hi @CedUE, That sounds like a great fix, i’ll give it a try! Thanks so much for that! It’s been executing me for days but has actually taught me lots of things about various other systems and debugs as I tried different things to fix.
Hi @CedUE, Do you know of a way to attach the strain field to an actor? My main goal is to be able to make people and objects to be able to get thrown through the windows and it shatter upon doing so. Is this possible at all before 5.1?
So, I actually found the answer to this, but I’ll post it up in case anyone else is in a similar situation.
New Actor Blueprint:
Add Static Mesh for unbroken glass.
Add Fracture collection for broken glass.
Add Box Collision for even generation.
I’ll attach the blueprint work. It’s not perfect, but does a job.
If you are using an anchor and the geometry collection type if “dynamic” then any dynamic object thrown at it ( ragdoll or physics object ) will cause collision to cause strain to the glass window and if the damage threshold is set right then it will shatter
Hi @CedUE. I did actually try that method fairly exhaustively. Any Dynamic objects I would roll towards the glass would bounce off or roll through. I had health settings at 100, 80 and 50. I also set the object to deal 5000 damage upon hit result and again or overlap with a box collision. Just couldn’t seem to get it to work. Tried Physics actors, ragdoll and custom types.
Only with my hatchet job blueprint was I able to get anywhere close to a realistic glass smashing.
I’m sure I’m doing something wrong with the easier method but I just couldn’t troubleshoot exactly what I was messing up.
I’m having issues with damage threshold too. In my case my geometry collection has a threshold of 10 000 but it breaks when receiving a single force of 100…