Skip to content

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

License

Notifications You must be signed in to change notification settings

SYBIOTE/Godot-Mesh-slicer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published