mirror of
https://github.com/galacean/engine.git
synced 2026-06-20 16:25:59 +08:00
1.1 KiB
1.1 KiB
order, title, type, label
| order | title | type | label |
|---|---|---|---|
| 3 | Camera Manager | XR | XR |
The Camera Manager is a part of the XRManager instance, which you can access through xrManager.cameraManager.
Properties
| Property | Type | Description |
|---|---|---|
| fixedFoveation | number | Sets the fixed foveation for the camera |
Methods
| Method | Description |
|---|---|
| attachCamera | Binds the camera in the virtual world to the camera in the real world |
| detachCamera | Unbinds the camera in the virtual world from the camera in the real world |
Update Process
Simply synchronizing the parameters and poses of the real camera to the virtual camera allows the real scene and virtual scene to stay synchronized.
flowchart TD
A[时间片开始] --> B[获取现实相机数据]
B --> C[将姿态同步给虚拟相机]
C --> D[将 viewport 同步给虚拟相机]
D --> E[将投影矩阵同步给虚拟相机]
E --> F[时间片结束]
F --> A