Hi everyone, I could really use your help with an issue I've been struggling with for the past three days. I'm trying to create a new object inside a CCTV object that I can track in debug camera mode. This new object needs to have a network ID when spawned, which I managed to implement. However, the problem lies in tracking the information from the child objects of the CCTV, specifically CCTV_Pitch and CCTV_Yaw.
Currently, I’ve implemented this by updating the position and rotation through data sent from the server. When the data reaches the client, the new object instantly updates to the new position and rotation. However, I need this movement to be as smooth as the rotation of the main CCTV block, which rotates gradually rather than snapping instantly.
I don’t want to send new position data every 0.01 seconds, as this would put too much load on the server and still wouldn’t guarantee perfect smoothness. I believe the best solution would be to implement Lerp on the client side. I’m thinking of creating a custom component for the object when it’s spawned to handle this calculation locally, but I’m not sure how to approach it.
Could anyone guide me on how to achieve this? Any advice or suggestions would be greatly appreciated! Thanks in advance!