mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 07:42:23 +00:00
test(qa): floor verification reads the app's ground floor and measures models where drawn
- The DEM prior column read a fresh import of src/data/groundFloor.js, a module the app does not use for its layers (they read the scene's surface services), so it was null for every contact. It now reads window.__godsEyeView.surfaceServices.groundFloor. The terrain proxy answers 200 and the AUS cells resolve within one or two polls (123-128 m); the "proxy 503" reading in the task-11 report was this misread. - A contact a 3D model draws is measured at the model's translation (the probe's drawn() reports it now): its sprite is hidden and keeps the pre-floor height by design (T7), so measuring the sprite reported a buried aircraft that is not drawn.
This commit is contained in:
1 parent
ed9ea7e679
commit
5ff8c5d7a6
2 files changed
+28
-3
No files matched your search
@@ -9,6 +9,11 @@
|
||||
* handle), `_models` (id → model handle), `_trackedIcao`, `_trackedModel`.
|
||||
* @returns {Array<object>}
|
||||
*/
|
||||
const translationOf = (matrix) =>
|
||||
matrix && Number.isFinite(matrix[12])
|
||||
? { x: matrix[12], y: matrix[13], z: matrix[14] }
|
||||
: null;
|
||||
|
||||
export function aircraftQaDrawn(state) {
|
||||
const out = [];
|
||||
for (const [id, sprite] of state._billboards) {
|
||||
@@ -36,6 +41,8 @@ export function aircraftQaDrawn(state) {
|
||||
computedScale: model.computedScale,
|
||||
show: model.show,
|
||||
ready: model.ready,
|
||||
// Where it is drawn: its transform's translation.
|
||||
position: translationOf(model.modelMatrix),
|
||||
}
|
||||
: null,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user