Rectangle shape resource for 2D physics.
2D rectangle shape to be added as a [i]direct[/i] child of a [PhysicsBody2D] or [Area2D] using a [CollisionShape2D] node. This shape is useful for modeling box-like 2D objects.
[b]Performance:[/b] Being a primitive collision shape, [RectangleShape2D] is fast to check collisions against (though not as fast as [CircleShape2D]).
https://godotengine.org/asset-library/asset/121
https://godotengine.org/asset-library/asset/113
The rectangle's width and height.