I implemented a simple shrinking system for the character and now I’m faced with the question of how I can zoom the camera closer to the character during the shrinking process, since the camera stays in place after the shrinking process and is therefore much too wide awake .
This function will zoom the spring arm length to the new set length and then shut itself off. You can change the interp node if you want the spring arm to zoom in non-linear. A lot of other ways to do it too, but this will hopefully give you something to work with.
Is there also a way to do this with a timeline ?
I’ve noticed that when shrinking is enabled and FPS drops slightly below 30, zooming in is slightly laggy and stutters.
Sorry I thought that was frame rate independent… if I remove get world delta seconds from delta time and just put a 1 there instead it seems to work the same at any framerate.
Simple timeline for it looks like this, with the first value set to your starting spring arm length and second for ending length, duration is whatever you want.
Runs a lot smoother. Thanks a lot for this. I have one more question, is it possible to change the Z-axis of the spring arm somehow? That it goes from Z-100 to Z-60 during the zoom, for example?
Instead of using the float value in the timeline, change it to a vector. Have 1 value be the length and the other values can be used to add or set the rotation of the spring arm.