Class RectangleShape2D
A 2D rectangle shape used for physics collision.
- Inheritance
-
RectangleShape2D
Remarks
A 2D rectangle shape, intended for use in physics. Usually used to provide a shape for a CollisionShape2D.
Performance: RectangleShape2D is fast to check collisions against. It is faster than CapsuleShape2D, but slower than CircleShape2D.
See Also
Properties
size
The rectangle's width and height.
var size : Vector2 = Vector2(20, 20)