Skip to content

class_node2d

reduz edited this page Feb 23, 2014 · 12 revisions

Node2D

Inherits: CanvasItem\n\n

Brief Description

Base node for 2D system.

Member Functions

Description

Base node for 2D system. Node2D contains a position, rotation and scale, which is used to position and animate. It can alternatively be used with a custom 2D transform (matrix32). A tree of Node2Ds allows complex hierachies for animation and positioning.

Member Function Description

  • void ** set_pos ** ( Vector2 pos ) \ Set the position of the 2d node.
  • void ** set_rot ** ( real rot ) \ Set the rotation of the 2d node.
  • Vector2 ** get_pos ** ( ) const \ Return the position of the 2D node.
  • real ** get_rot ** ( ) const \ Return the rotation of the 2D node.

Clone this wiki locally