CollisionShape2D circle radius config not working

Godot Version

I am using Godot 4 in 2D game development.


I have a detection (Area2D) with a child CollisionShape2D. I wanted to expand the circle radius but it ended an error Invalid set index 'radius' (on base: 'CollisionShape2D') with value of type 'float'.



I also had tried, $detection/CollisionShape2D.radius = 100.00 and it did not work.
please help, i need this so my enemy can chase after the player in engage mode.

The CollisionShape2D object has no radius property.
It is handled by the shape property which in this case will be a CircleShape2D.

1 Like