EG/core/vr/__init__.py
2025-10-11 16:41:59 +08:00

38 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
VR模块 - 虚拟现实功能
这个模块提供完整的VR功能支持包括
- VR设备初始化和管理
- 渲染系统双眼渲染、RenderPipeline集成
- 跟踪系统HMD和控制器姿态跟踪
- 交互系统(控制器输入、摇杆、传送、抓取)
- 可视化系统(控制器模型、特效)
- 性能优化和监控
- 测试和调试工具
- 配置管理
主要接口:
VRManager: VR管理器主类
VRRenderMode: VR渲染模式枚举
示例:
from core.vr import VRManager
vr_manager = VRManager(world)
vr_manager.initialize_vr()
vr_manager.enable_vr()
"""
# 为了向后兼容从core.vr_manager重新导出
# vr_manager.py目前还包含VRManager的完整实现
# 未来可以逐步将其拆分到子模块中
# 使用相对导入从父目录的vr_manager模块导入
try:
from ..vr_manager import VRManager, VRRenderMode
__all__ = ['VRManager', 'VRRenderMode']
except ImportError as e:
print(f"警告无法从vr_manager导入: {e}")
__all__ = []
__version__ = '2.0.0'