Skip to content
Lukas Sägesser edited this page Jun 22, 2015 · 13 revisions

Node2D

####Inherits: CanvasItem ####Category: Core

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

Set the position of the 2d node.

  • void set_rot ( float rot )

Set the rotation of the 2d node.

Set the scale of the 2d node.

Return the position of the 2D node.

  • float get_rot ( ) const

Return the rotation of the 2D node.

Return the scale of the 2D node.

Return the global position of the 2D node.

Clone this wiki locally