CurryKitten / CurryKitten-Sim

FPV quad simulator
67 stars 7 forks source link

Allow player to cycle through other players view in online multiplayer #53

Closed CurryKitten closed 4 years ago

CurryKitten commented 4 years ago

Partly because I'm nosy and want to see what other people are up to and how they are flying, but also as it lets people show others a trick, or a route to follow or something. This sounds like a useful extra feature.

CurryKitten commented 4 years ago

It's fairly easy to cycle around the cameras at the moment (with a bit of code work) but what we don't do right now is pass over the camera angle or FV lens type when we instantiate the networked quad objects into the players local space, so we need to do that as well as act on any changes to these. WIth that said, it might also be nice to pass over the rest of the rate/gravity data so other players can see what others are flying with,

CurryKitten commented 4 years ago

After much effort... finally done. There are, as it turns out some possible lags in joining so there's a wait of up to 10 seconds in order to sync some information around, but J will let teh player jump between other players screens which will properly reflect their camera angle, FOV lens type and whether the props are visible or not.

Pressing RETURN will also show you what that player has set, V will show what type of lens they have. Any changes the player you are viewing makes and it will instantly reflect in the remote view you are seeing.

The only thing I kept as is was whatever the trail and big quad option the local player had set (although trails are turned off for the player you are viewing so you can't see your own trail). This was a mix of it being a pain to do, and might work against what the actual player wants to see - I figure if they've turned on big quad and trails then they want to see what's happening easier.