How to set a node customized translation as 0

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

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

:bust_in_silhouette: Reply From: S4_Yuuki

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)