Skip to content

Implement Stealth Mode#8

Merged
from2001 merged 17 commits intodevelopfrom
feature/StealthMode2
Aug 13, 2025
Merged

Implement Stealth Mode#8
from2001 merged 17 commits intodevelopfrom
feature/StealthMode2

Conversation

@from2001
Copy link
Collaborator

Feature/stealth mode2

  - Remove duplicate files from root directory (kept package versions in src/)
  - Move test files to tests/integration/ directory
  - Update imports to use package structure
  - Maintain stealth mode features in the consolidated codebase

  This change follows Python packaging best practices with src layout and
  separate test directory, making the project structure more maintainable
  and CI/CD friendly.
@from2001 from2001 requested a review from Copilot August 13, 2025 01:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a "Stealth Mode" feature that allows clients to connect to the server without spawning a visible avatar. Stealth clients can participate in the network (send/receive RPCs, access network variables) but their transforms are not broadcast to other clients and they don't appear in group transform messages.

  • Stealth mode is detected by sending NaN values in all transform fields (physics, head, hands) as a handshake
  • Server tracks stealth status and excludes stealth clients from transform broadcasts while including them in ID mappings
  • Unity client automatically enables stealth mode when no local player prefab is assigned

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
NetSyncManager.cs Added stealth mode detection, new API method, and enhanced logging
TransformSyncManager.cs Added stealth handshake sending functionality
PlayerManager.cs Modified client filtering to support stealth mode exclusion
MessageProcessor.cs Added stealth mode tracking and detection logic
DataStructure.cs Extended DeviceIdMapping to include stealth flag
BinarySerializer.cs Added stealth handshake serialization and NaN detection
Demo-01.unity Updated scene configuration and component setup
server.py Enhanced server with stealth client detection and filtering
binary_serializer.py Added stealth mode detection utilities and mapping serialization
test files Added comprehensive stealth mode testing and integration tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@from2001 from2001 merged commit 90dd873 into develop Aug 13, 2025
6 checks passed
@from2001 from2001 deleted the feature/StealthMode2 branch August 13, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants