In an online fps, how could I show a character model that represents the player to other people, but the actual player cannot see?
Easiest solution is probably having a game object that only has the scripts, NetworkView and colliders etc. attached - but not an actual model. Then, for the player, don’t do anything [EDIT: actually, you might want to attach a camera ] - for the others: Locally instantiate a model and attach it below that game object.
So that would be for the other players:
PlayerObject
- PlayerModel
And for the player:
PlayerObject
- Camera
Sunny regards,
Jashan
Or have a single prefab that has all that and then enable/disable certain components depending on whether the object is local or remote.
which is the easiest way?
That depends … my guess would be that Jeff’s solution is probably quicker to set up (and thus could be considered “easier”). However, if you consider implementing your own LOD-system, you might be better off if you started with my solution right away (at least that’s what I’m thinking now that I have implemented things the other way ).