In protocol.rs I have a PlayerBundle with both group: ReplicationGroup::default() and relevance_mode: NetworkRelevanceMode::InterestManagement
I have a PlayerTextBundle with a PlayerParent mapped with MapEntities
In server.rs I have interest_management -- the players are initially added to room 0 and can see each other. Their room changes every 200px they move, and the server info logs which rooms they've moved to.
Notice that if you move to a new room and move back, replication no longer works.
I am trying to use replication groups alongside interest management, but leaving a room and re-entering the same room breaks replication.
Here's a sample project: https://github.com/treytencarey/placeholder_interest_group_management
protocol.rs
I have aPlayerBundle
with bothgroup: ReplicationGroup::default()
andrelevance_mode: NetworkRelevanceMode::InterestManagement
PlayerParent
mapped withMapEntities
server.rs
I haveinterest_management
-- the players are initially added to room 0 and can see each other. Their room changes every 200px they move, and the serverinfo
logs which rooms they've moved to.