/knife-tool

Godot plugin that let users slice Polygon2D, CollisionPolygon2D and NavigationRegion2D /NavigationPolygonInstance nodes

Primary LanguageGDScriptMIT LicenseMIT

Polygon Knife Tool

Godot plugin that let users slice Polygon2D, NavigationRegion2D and CollisionPolygon2D nodes and scenes based on said nodes.

This is the Godot 4.x version of the plugin, if you are using Godot 3.x click here.

use_case

Install Instructions

Download and move the unzipped folder in your project addons folder.

If you use git you can also add it as a submodule:

git submodule add https://github.com/mrkdji/knife-tool.git addons/knife-tool

Usage

Action Key
Add Point left mouse click
Cancel Cut right mouse click
Confirm Cut enter / return

What you can do with the knife tool:

  • Simple cut

simple_cut

  • Cut with multiple inner points

multiple_points

  • Multiple cuts at once

multiple_cuts

  • Cuts that self-intersect (with a caveat)

self_intersection

What you can't do with the knife tool:

  • Carve holes

hole

  • Cuts that self-intersect inside the polygon:

self_intersection_inside

Buy Me A Coffee

If you find this tool useful send me the munny consider buying me a coffee:

ko-fi