10 lines
248 B
GDScript
10 lines
248 B
GDScript
extends Area2D
|
|
|
|
func _on_ball_shape_entered(body_rid, body, body_shape_index, local_shape_index):
|
|
print("FUCK YES")
|
|
match self.shape_owner_get_owner(local_shape_index).boundary_invert_axis:
|
|
0: # x
|
|
body.invert_x()
|
|
1: # y
|
|
body.invert_y()
|