I have this mechanic where a player can toss a coin and teleport to it, and it's basically just a small rigid body that has a raycaster node on it to it to sense if anything is above it.
I've been using this to point it up:
raycast.look_at(coin.translation,Vector3.UP)
That code is placed in the process function of the coin, and it mostly works except that the raycast tries to point to somewhere near the origin, resulting in the raycast never perfectly pointing upwards. I've tried a variety of things but I can't get this one line of code to work.
Is there a better solution or some kind of helpful godot function to make this work? I've scoured the docs to no avail.