mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(navara): add finite visible-surface obstruction rays
Reuse retained tile triangles for CCTV's upcoming activation probe, with finite range, exclusions and honest misses. Correct nearest-hit ordering when the ray starts inside a mesh bound. Fifteen focused surface tests and all full keyless unit/allocation, boundary, format and build gates pass. CCTV renderer integration and existing acceptance gaps remain documented.
This commit is contained in:
1 parent
93c71ffc86
commit
798d6636ab
4 files changed
+200
-1
No files matched your search
@@ -203,6 +203,11 @@
|
||||
* The position moved onto the rendered scene along the geodetic normal.
|
||||
* @property {boolean} clampToHeightSupported
|
||||
* @property {() => boolean} tilesLoaded
|
||||
* @property {boolean} [raycastSupported] Optional visible-tile obstruction probe.
|
||||
* @property {(ray: { origin: Cartesian3, direction: Cartesian3, far: number, exclude?: any[] }) => ({ position: Cartesian3, distance: number, object: any } | undefined)} [raycast]
|
||||
* Nearest visible tile triangle within finite positive `far` metres. Direction
|
||||
* is normalized by the adapter. Excluded roots/meshes and hidden objects do
|
||||
* not obstruct; a miss or unsupported geometry returns undefined, not terrain.
|
||||
*
|
||||
* @typedef {object} SurfaceHeight
|
||||
* @property {number} height Metres above the ellipsoid.
|
||||
|
||||
Reference in new issue
Block a user