Skip to content

angrykoala/godot-donut-collision-polygon-2d

Repository files navigation

Donut Collision Polygon 2D for Godot

by @angrykoala
A donut-shaped collision shape for Godot.

This plugin creates new Node types for donut collision shapes for 2D collisions.

Donut
Donut Example

Donut Rectangle
Donut Rectangle

Instructions

The asset can be downloaded from Godot Asset Library or GitHub

  1. Add the folder donut_collision_polygon2D to addons/.
  2. Activate the plugin in Godot.
  3. Create any collision or physics 2D node (e.g. Area2D or RigidBody2D).
  4. Add a DonutCollisionPolygon2D or DonutCollisionRectangle2D as child. Tree Example

Properties

  • Donut
    • radius: Defines the radius of the donut. This will be the circumference at the center of the donut.
    • width: The width of the donut.
    • quality: The number of points to use per circumference. The total points count will be quality*2+1.
  • Donut Rectangle
    • size
    • width

License

Made by @angrykoala. MIT License