9 lines
213 B
GDScript
9 lines
213 B
GDScript
class_name BallDetector extends Area3D
|
|
|
|
|
|
func major_body_entered(ball: Node3D) -> void:
|
|
ball.axis_lock_linear_y = false
|
|
|
|
func miner_body_entered(ball: Node3D) -> void:
|
|
Globals.game_state.process_ball.emit(ball)
|