#I added Breakable Glasses on my game, also a new baton inspect animation

1 messages · Page 1 of 1 (latest)

dusty heart
#

looks awesome

#

also consider posting new updates all in one thread instead of making new ones
its easier to follow along a project like that, I follow the Leaden Sky and that medal of honor threads for example

topaz moss
#

Damn.. wow! 🤩 Would love to know how its made

old sedge
# topaz moss Damn.. wow! 🤩 Would love to know how its made

Pretty simple really, in Blender, i made a cube, then used the cell fracture addon to make cracks, then on Godot, i made all the pieces a Rigidbody node, I knew it was gonna be tedious so i just made as few cracks as possible while making it look like shattered glass, I didn't use the Destruction godot plugin because it has an issue on materials, then i set all of the shards' collision shapes to disabled, and mode to static

#

then i added a health to the glass and a function so that when health reaches 0, it will break the glass by setting all of the rigidbody modes to rigid, then collision shapes to enabled

#

it will also disable the main collision shape of the glass

#

for the batch system, well it's kinda spaghetti code so i can't really explain 😅

topaz moss
#

Cool! Does this mean the glass breaks the same way every time? If it's pre-sliced from Blender?

old sedge
#

unfortunately yes, but I set a random velocity to each shards when broken so when the glass breaks, it's more randomized and polished

#

also I added some extra particles to hide that limitation