blob: 0dc214ba71340349880c8a52e6821014ab15a435 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
extends StaticBody2D
func is_colliding(node: CollisionObject2D) -> bool:
return $Area2D.get_overlapping_bodies().has(node)
func get_center() -> Vector2:
return $Center.global_position
func get_lowest_point() -> Vector2:
return $LowestPoint.global_position
|