Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.


Inherits: Shape2D < Resource < RefCounted < Object

Circular shape resource for 2D physics.


2D circular shape to be added as a direct child of a PhysicsBody2D or Area2D using a CollisionShape2D node. This shape is useful for modeling balls or small characters and its collision detection with everything else is very fast.

Performance: Being a primitive collision shape, CircleShape2D is the fastest collision shape to check collisions against, as it only requires a distance check with the shape's origin.





Property Descriptions

float radius = 10.0

  • void set_radius ( float value )

  • float get_radius ( )

The circle's radius.