Answers for "godot change size of collision shape from code"

1

godot change collision shape size

# Rectangle
$CollisionShape2D.shape.extents = Vector2(x, y)

# Circle
$CollisionShape2D.shape.radius = some_value
Posted by: Guest on April-08-2021

Code answers related to "godot change size of collision shape from code"

Browse Popular Code Answers by Language