A 2D rectangle shape used for physics collision.
A 2D rectangle shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape2D]. [b]Performance:[/b] [RectangleShape2D] is fast to check collisions against. It is faster than [CapsuleShape2D], but slower than [CircleShape2D].
https://godotengine.org/asset-library/asset/2728 https://godotengine.org/asset-library/asset/2719
- The rectangle's width and height.