A new state needs to be added to keep track of the player's sitting/interactions.
Current issues:
-
(A) ~~Interaction icons still show when sitting~~:
Fixed with commit 43d519c. -
(B) Multiple players can occupy the same seat:
Keeping track of sitting state (and sending that over the network?) should help fix these issues.
Relates to #137.
@ctrlaltdavid To solve problem B, Is there an existing way that we could notify the domain server / other clients about which object we are currently sitting on in a scene?
Answer from David:
Editing entity properties probably not a goer because will run into permissions issues. An alternative could beto use MessageMixer messages to coordinate who's sitting on which entity - e.g., broadcast "I'm sitting on entity X" when first sit and then every second thereafter so that other users don't try to sit on an already occupied entity. And broadcast "I'm not sitting on entity X" when stamd up from it. And resolve race conditions - e.g., if receive a message saying that someone is sitting on the entity you're sitting on, unsit from it.