rotate onto a wall (3D)

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

im making a spider man wall crawling mechanic and i need him rotate to look at the wall/slope

look_at(Camera.get_global_transform().origin, Vector3.UP)
//////rotate_object_local(Vector3(0,1,0), 3.14) // to look in the opposite direction
You can make it look or rotate in the opposite direction of the camera angle.

ramazan | 2021-12-21 09:42