Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Driving a Vehicle

$
0
0
Hello Everybody :)

I'm trying to make a Player move around and sync that and that works perfectly fine

but the player also can drive Vehicles....the Vehicle has a Script for Control so when the Player gets closer to the Vehicle and Presses the Key his Player Component Script gets Disabled and Enables the Vehicle Controller Script and Vice Versa

but the problem when connecting It's working fine for the master player (who connected first and created the room)

but Its very Laggy for the other Player (that is not the master) and whenever he tries to move with the vehicle
the vehicle gets back to It's starting Position very quickly and never moves

the Vehicle and Player both has Photon View and Transform Photon View Components

How to Fix this Please

thank you so much for Supporting

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>