How can I get the distance between 2 KinematicBody2ds (Here A and B)?
For example in the Script of KinematicBody2d A I have a variable
var BodyB = get_parent().get_node(BodyB) which is the other body and a variable
var distance_to_BodyB which have to be set to the distance between body A and B in pixels as a number. How can I do that?