0 votes

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

Godot version 3.4 stable
in Engine by (467 points)

lookat(Camera.getglobaltransform().origin, Vector3.UP)
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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.