Hi,i need help with my problem, i want that the player throw a ball after press a button, the ball is a rigidbody child of the player.
root
player
* ball
This is the code in player.gd:
func _input(event):
if(event.is_action_pressed("lanzar")):
$ball.apply_central_impulse(Vector3(-100,0,0))