apply force from a node to another node (3D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Asoth

is there a way to make a line of code attached to node_a apply a force to node_b ?
node_a with script_a
node_b with script_b

like a jedi, yes

i tried to write in script_a :

func _integrate_forces(state):
node_b.state.add_force(forceX, Vector3(0,0,0))

or

func _integrate_forces(state):
state.node_b.add_force(forceX, Vector3(0,0,0))

with no success
is it clear enough ?