xyz By getting the ray intersect position and rotating the object in that direction. Your first sentence helped me a lot, I added a StaticBody3D and a CollisionShape3D to my Mesh and now I am getting ray intersection position, thanks!
This is what I wanted to get and what I'm getting:
["position", "normal", "collider_id", "collider", "shape", "rid"]
{ "position": (1.616341, 0.135095, -0.084189), "normal": (0, 1, 0), "collider_id": 38788924720, "collider": StaticBody3D:<StaticBody3D#38788924720>, "shape": 0, "rid": RID(5557687681024) }