What do you want to achieve? I want to be able to slam a object against the ground and have it break. For example, I pick up a box and I drop it from a high place then I want it to break.
What is the issue? I cant seem to figure out how to do this,( of course). but at first I was thinking I could measure the force on impact and if its above a certain amount it could break. I’m not sure if this is possible, I’m fairly new to scripting.
What solutions have you tried so far? I have tried to measure the magnitude from the object to the ground to see if I could make it break if it was a certain a certain distance from the ground. This didn’t work because it measures the distance from the middle of the ground and not right below the object.
So in conclusion, I want to be able to slam something or drop something on the ground and have it break.
So I’m gonna give you the easiest way since you said you weren’t good at scripting.
Basically make sure the part that you want to break is unanchored, put a script in it and inside of that script copy and paste this code:
local partToBreak = script.Parent
partToBreak.Touched:Connect(function()
partToBreak:Destroy()
end)
This is something right on the breaking edge still in the game development world. It’s simply too complex and time consuming to do in real-time, the closest work being done surrounds soft body physics (every object in the world has a certain level of elactisity etc.). What we have instead is solid geometry and textures to represent objects.