by @angrykoala
A donut-shaped collision shape for Godot.
This plugin creates new Node types for donut collision shapes for 2D collisions.
The asset can be downloaded from Godot Asset Library or GitHub
- Add the folder
donut_collision_polygon2D
toaddons/
. - Activate the plugin in Godot.
- Create any collision or physics 2D node (e.g.
Area2D
orRigidBody2D
). - Add a
DonutCollisionPolygon2D
orDonutCollisionRectangle2D
as child.
- 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
Made by @angrykoala. MIT License