Skip to content

Commit

Permalink
get_extents() -> size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvel2D committed Mar 5, 2023
1 parent 0949d16 commit ab23c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scenes/Landscape.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extends Node2D
@onready var play_area: CollisionShape2D = $PlayArea/CollisionShape2D

func get_play_area_size() -> Vector2:
return play_area.get_shape().get_extents()
return play_area.get_shape().size

func get_play_area_pos() -> Vector2:
return play_area.global_position

0 comments on commit ab23c4a

Please sign in to comment.