Trying to reduce latency for spawned projectiles
When i'm firing a projectile from a player, if the player is turning, by the time it is instantiated and spawned on the server, the player has turned much further and so the projectile has a lot of lag, and fires in the wrong direction.
If I instantiate it on the client, it's fine, however, obviously everyone else can't see it, so it doesn't work that way.
So, I tried to instantiate it on the client, then pass the object to the server to spawn, however, that still doesn't work, it needs to be instantiated on the server.
My question is, is there some way around this? Like instantiate it on the client, then get the server to take over the object? or destroy it and re-create it with the same vector when it catches up?
Using raycast is ok for bullets, however, rockets etc.. that actually have an object will have this problem.
Your answer
Follow this Question
Related Questions
Spawn different player prefab unet 0 Answers
Spawn script !! Y axis not working 0 Answers
Instantiate not spawning anything 1 Answer
how to make a enemy spawn in a specific place? 2d c# 3 Answers