-
Notifications
You must be signed in to change notification settings - Fork 0
class_node2d
reduz edited this page Feb 23, 2014
·
12 revisions
Inherits: CanvasItem\n\n
Base node for 2D system.
- void set_pos ( Vector2 pos )
- void set_rot ( real rot )
- void set_scale ( Vector2 scale )
- Vector2 get_pos ( ) const
- real get_rot ( ) const
- Vector2 get_scale ( ) const
- Vector2 get_global_pos ( ) const
- void set_transform ( Matrix32 xform )
- void set_global_transform ( Matrix32 xform )
- void edit_set_pivot ( Vector2 arg0 )
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.
- Vector2 get_global_pos ( ) const \ Return the global position of the 2D node.