Node2D

Inherits: CanvasItem < Node < Object

Inherited By: AnimatedSprite2D, AudioListener2D, AudioStreamPlayer2D, BackBufferCopy, Bone2D, Camera2D, CanvasGroup, CanvasModulate, CollisionObject2D, CollisionPolygon2D, CollisionShape2D, CPUParticles2D, GPUParticles2D, Joint2D, Light2D, LightOccluder2D, Line2D, Marker2D, MeshInstance2D, MultiMeshInstance2D, NavigationLink2D, NavigationObstacle2D, NavigationRegion2D, Parallax2D, ParallaxLayer, Path2D, PathFollow2D, Polygon2D, RayCast2D, RemoteTransform2D, ShapeCast2D, Skeleton2D, Sprite2D, TileMap, TileMapLayer, TouchScreenButton, VisibleOnScreenNotifier2D

There is currently no description for this class. Please help us by contributing one!

Properties

Vector2

global_position

float

global_rotation

float

global_rotation_degrees

Vector2

global_scale

float

global_skew

Transform2D

global_transform

Vector2

position

Vector2(0, 0)

float

rotation

0.0

float

rotation_degrees

Vector2

scale

Vector2(1, 1)

float

skew

0.0

Transform2D

transform

Methods

void

apply_scale ( Vector2 ratio )

float

get_angle_to ( Vector2 point ) const

Transform2D

get_relative_transform_to_parent ( Node parent ) const

void

global_translate ( Vector2 offset )

void

look_at ( Vector2 point )

void

move_local_x ( float delta, bool scaled=false )

void

move_local_y ( float delta, bool scaled=false )

void

rotate ( float radians )

Vector2

to_global ( Vector2 local_point ) const

Vector2

to_local ( Vector2 global_point ) const

void

translate ( Vector2 offset )


Property Descriptions

Vector2 global_position

  • void set_global_position ( Vector2 value )

  • Vector2 get_global_position ( )

There is currently no description for this property. Please help us by contributing one!


float global_rotation

  • void set_global_rotation ( float value )

  • float get_global_rotation ( )

There is currently no description for this property. Please help us by contributing one!


float global_rotation_degrees

  • void set_global_rotation_degrees ( float value )

  • float get_global_rotation_degrees ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 global_scale

  • void set_global_scale ( Vector2 value )

  • Vector2 get_global_scale ( )

There is currently no description for this property. Please help us by contributing one!


float global_skew

  • void set_global_skew ( float value )

  • float get_global_skew ( )

There is currently no description for this property. Please help us by contributing one!


Transform2D global_transform

There is currently no description for this property. Please help us by contributing one!


Vector2 position = Vector2(0, 0)

There is currently no description for this property. Please help us by contributing one!


float rotation = 0.0

  • void set_rotation ( float value )

  • float get_rotation ( )

There is currently no description for this property. Please help us by contributing one!


float rotation_degrees

  • void set_rotation_degrees ( float value )

  • float get_rotation_degrees ( )

There is currently no description for this property. Please help us by contributing one!


Vector2 scale = Vector2(1, 1)

There is currently no description for this property. Please help us by contributing one!


float skew = 0.0

  • void set_skew ( float value )

  • float get_skew ( )

There is currently no description for this property. Please help us by contributing one!


Transform2D transform

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void apply_scale ( Vector2 ratio )

There is currently no description for this method. Please help us by contributing one!


float get_angle_to ( Vector2 point ) const

There is currently no description for this method. Please help us by contributing one!


Transform2D get_relative_transform_to_parent ( Node parent ) const

There is currently no description for this method. Please help us by contributing one!


void global_translate ( Vector2 offset )

There is currently no description for this method. Please help us by contributing one!


void look_at ( Vector2 point )

There is currently no description for this method. Please help us by contributing one!


void move_local_x ( float delta, bool scaled=false )

There is currently no description for this method. Please help us by contributing one!


void move_local_y ( float delta, bool scaled=false )

There is currently no description for this method. Please help us by contributing one!


void rotate ( float radians )

There is currently no description for this method. Please help us by contributing one!


Vector2 to_global ( Vector2 local_point ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 to_local ( Vector2 global_point ) const

There is currently no description for this method. Please help us by contributing one!


void translate ( Vector2 offset )

There is currently no description for this method. Please help us by contributing one!