Skip to content

class_rectangleshape2d

reduz edited this page Feb 23, 2014 · 9 revisions

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

  • void set_extents ( Vector2 extents )

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

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

Clone this wiki locally