RectangleShape2D

Inherits: Shape2D < Resource < RefCounted < Object

Rectangle shape for 2D collisions.

Description

Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects.

Properties

Vector2

size

Vector2(20, 20)

Property Descriptions

Default

Vector2(20, 20)

Setter

set_size(value)

Getter

get_size()

The rectangle's width and height.