Hello, I have a small problem, I'm creating a few nodes with Area2D -> CollisionShape2D and giving them a circle shape.
Every instance should have different collision size.
When I'm doing it by code, area2d and colshape2d are created, but circle shape is not.
When I'm doing it in editor (while making shape unique), everything is existing, but I can't change radius with code, before and after creating node.
I have tried different scripts, like:
newCircleShape = CircleShape2D.new()
newCircleShape.radius = x
newCollisionShape.shape = newCircleShape
I saw examples on google like this line:
$CollisionShape2D.shape.radius = some_value
should also work, but I've tried using it in every possible way and still it's doing nothing.
Do I have a stroke, or it's just not possible?