W3cubDocs

/Godot 3.1

RectangleShape2D

Inherits: Shape2D < Resource < Reference < Object

Category: Core

Brief Description

Rectangle shape for 2D collisions.

Properties

Vector2 extents

Description

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

Property Descriptions

Vector2 extents

Setter set_extents(value)
Getter get_extents()

The rectangle’s half extents. The width and height of this shape is twice the half extents.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_rectangleshape2d.html