Skip to content

class_rectangleshape2d

reduz edited this page Feb 23, 2014 · 9 revisions

RectangleShape2D

Inherits: Shape2D\n\n### 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 ==
  • Vector2 get_extents" ( ) const \ Return the half extents, the actual width and height of this shape is twice the half extents.

Clone this wiki locally