0 votes

I'm pretty sure I saw this in somewhere on YT, but IDK if I'm really sure...
Is there a way to set this to be my 0, 0, 0 ? (I only need Translation, but if the function set all as 0,0,0 will be ok too)

Godot version v3.4.2
in Engine by (20 points)

1 Answer

0 votes

Okay... Okay... They took too much to accept the question, that I found a solution.

The solution was make the global position be the current one... So the lerp function works

self.transform.origin.z = lerp(self.transform.origin.z, player_posi_z, smooth_cam * delta)
self.transform.origin.y = lerp(self.transform.origin.y, player_posi_y + 5, smooth_cam * delta)
by (20 points)
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.