class_rectangleshape2d - vkbsb/godot GitHub Wiki

RectangleShape2D

####Inherits: Shape2D ####Category: Core

Brief Description

Rectangle Shape for 2D Physics.

Member Functions

Description

Rectangle Shape for 2D Physics. This shape is useful for modelling box-like 2D objects.

Member Function Description

set_extents

  • void set_extents ( Vector2 extents )

Set the half extents, the actual width and height of this shape is twice the half extents.

get_extents

Return the half extents, the actual width and height of this shape is twice the half extents.