Rotating a sphere in sympathy with its translation.

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

I am new to Godot and I am writing a simple game to get my feet wet as it were. I have put animated spherical MOBS in a game that autonomously travel around a maze. The MOB node type is Area. I animate the translation of the MOBS with an AnimationPlayer node but would like to rotate the MOBS according to the translation and sphere diameter to avoid having to manually animate the rotations. I would be grateful if someone could point me in the right direction. I have tried scripting this in _physics_process(delta) but can’t get it smooth or accurate. Also I cannot see how to get the bounding box of the MOB to determine the diameter. Thank you.