@hackbuild/agents-views 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yard/scope.js +4 -2
- package/package.json +1 -1
package/dist/yard/scope.js
CHANGED
|
@@ -1579,8 +1579,10 @@ function sense(t) {
|
|
|
1579
1579
|
p.net = Math.max(0, p.net - 0.02);
|
|
1580
1580
|
}
|
|
1581
1581
|
for (const k in percepts) if (k.startsWith('treat') && !treats[+k.slice(5)]) delete percepts[k];
|
|
1582
|
-
//
|
|
1583
|
-
|
|
1582
|
+
// the human out the gate is no longer in view. A hidden squirrel keeps its last sighting: the dog
|
|
1583
|
+
// watches where it went, and the scenario goldens were recorded on that (applying this to every
|
|
1584
|
+
// percept changed scent-trail, stroll-squirrel and both phone nudges, measured)
|
|
1585
|
+
{ const p = percepts.you; if (p && p.frame !== t && p.vis) { p.vis = false; p.sal = 0; } }
|
|
1584
1586
|
}
|
|
1585
1587
|
// remembered position: errors grow with time but stay near the target (Fiset 2003)
|
|
1586
1588
|
function memPos(p) { const age = Math.max(0, now - p.seen); return p.err ? p.pos.clone().addScaledVector(p.err, 0.25 * Math.sqrt(age / 60)) : p.pos.clone(); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackbuild/agents-views",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Views that bind the agents packages to the hackbuild-ui class layer: the behaviour, utility and drive bars, the cues by acts associations table, the eye inset, and Yard, the dog simulator's stage and rack as one view. Each small view ships as a Vue component and as a custom element.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|