SYBIOTE / Godot-Mesh-slicer

scripts to cut mesh / rigid bodies in godot at runtime implemented in GDscript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot-Mesh-slicer

scripts to cut mesh / rigid bodies in godot at runtime implemented in GDscript

showcase : https://www.youtube.com/watch?v=ynZVK_XyaRc.
play the demo scene to destroy the cube Screenshot 2021-05-05 at 10 56 54 PM Screenshot 2021-05-05 at 10 57 54 PM

Use

Once you download/copy the slicer file into your project.
There will a new node under rigid body called , sliceable.
The sliceable node needs a mesh instance with mesh
and a empty collision shape under it to function.
Provide a cutting plane to the cut_object function (in world space).
This will cut the rigid body into two rigidbodies.

added cross section materials

Bugs

bit of texture / UV distortion on the newly generated vertices

About

scripts to cut mesh / rigid bodies in godot at runtime implemented in GDscript

License:MIT License


Languages

Language:GDScript 100.0%