Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CircleShape2D¶
Inherits: Shape2D < Resource < RefCounted < Object
Circular shape resource for 2D physics.
Description¶
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.
Properties¶
|
Property Descriptions¶
float radius = 10.0
The circle's radius.