vircadia-web icon indicating copy to clipboard operation
vircadia-web copied to clipboard

A new state needs to be added to keep track of the player's sitting/interactions.

Open Gigabyte5671 opened this issue 3 years ago • 2 comments

Current issues:

  • (A) ~~Interaction icons still show when sitting~~: image Fixed with commit 43d519c.
  • (B) Multiple players can occupy the same seat: image

Keeping track of sitting state (and sending that over the network?) should help fix these issues.

Relates to #137.

Gigabyte5671 avatar Feb 26 '23 09:02 Gigabyte5671

@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?

Gigabyte5671 avatar Mar 20 '23 00:03 Gigabyte5671

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.

Gigabyte5671 avatar Oct 25 '23 21:10 Gigabyte5671