I’m sure I’m doing something wrong here. but I’m making a custom camera manager for my player controller and I’m trying to get the lookat target to move smoothly between where it is and where the new target is. in order to accomplish this I’m using the VinterpTo node to move the target after which I apply a camera offset to the target so it takes the camera with it.
but when i set the new target the camera just snaps there instead of moving smoothly
I’d appreciate any help and thanks a lot!
Edit:
Unearthlywhales brings up a good point. this is running on tick, so it is being updated every frame
Hmm try doing just the Vinterp to part only and hooking that up directly to tick and hooking up the delta time instead of get delta seconds. See if that works, if that works and it does not work in this function then there is something wrong with the function. Once the Vinterp is working properly then you can look at your offset logic. If it stops working then, then the offset logic is flawed and you problem would be in that section.
I’ve tested the function on its own and the offset logis as well. matter of fact, i was initially calculating the camera and offset then lerping from the already offset cameraposition to the new offset camera position the problem there is that the camera would snap its view to the new target and then lerp its way to the new position.
i switched it around so that one would be independent from the other and the camera would always follow the target.
my question is not so much about the logic(as far as I’ve tested it should work) of it but on the proper usage of the node.
From what I see in your image you are using the Vinterp-node correctly so sorry to say that I don’t have a direct solution for your problem at the moment.
Quick question, might be a stupid one, but when you set the new location in the “but when i set the new target the camera just snaps there instead of moving smoothly” section. I assume you are setting the NewTargetLocation variable right?
extremely, but I’m not gunna look to much more into it. as long as its working im happy. yeah logic was sound, still dont understand why why that was going down but hey its working.