Class: SDC::DrawShapeRectangle

Inherits:
DrawShape show all
Defined in:
engine_docs/automatic_doc_DrawShapeRectangle.rb,
engine_docs/automatic_doc_DrawShapeRectangle.rb

Overview

Drawing shape class for a rectangle

Instance Attribute Summary collapse

Attributes inherited from DrawShape

#fill_color, #origin, #outline_color, #outline_thickness, #position, #rotation, #scale, #texture_rect

Instance Method Summary collapse

Methods inherited from DrawShape

#link_texture

Constructor Details

#initializeDrawShapeRectangle

Creates an empty rectangle shape



# File 'engine_docs/automatic_doc_DrawShapeRectangle.rb', line 9

Instance Attribute Details

#sizeCoordinates

Size vector of the rectangle

Returns:



# File 'engine_docs/automatic_doc_DrawShapeRectangle.rb', line 14

Instance Method Details

#get_from(collision_shape) ⇒ nil

Copies properties from the given shape to this shape

Parameters:

  • collision_shape

    CollisionShapeRectangle

Returns:

  • (nil)


# File 'engine_docs/automatic_doc_DrawShapeRectangle.rb', line 18