diff options
Diffstat (limited to 'flipper.gd')
-rw-r--r-- | flipper.gd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/flipper.gd b/flipper.gd new file mode 100644 index 0000000..0dc214b --- /dev/null +++ b/flipper.gd @@ -0,0 +1,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 |