![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | MOSN |
I have this piece of code which is supposed to move the camera:
get_parent().find_node(“MenuCamera”).position.x = lerp(get_parent().find_node(“MenuCamera”).position.x, 995, 0.15)
It runs every frame so as far as I can see the camera should eventually end up at (or very near to) 995. But for some reason i stops at 412. Have used lerp() like this before without problem. Have I messed something up or could it be related to the parent node or something?
What kind of camera is this? A regular Camera
? An InterpolatedCamera
? Maybe it has subverting to do with the camera type?
Ertain | 2019-12-13 20:40
It’s a Camera2D
MOSN | 2019-12-14 08:36