diff --git a/docs/goal-ai-map.md b/docs/goal-ai-map.md index eacd91f..07fef1d 100644 --- a/docs/goal-ai-map.md +++ b/docs/goal-ai-map.md @@ -234,7 +234,7 @@ one joint contest by will. Nothing in the cuts below may write a body-wide outpu | 2c | `lodur-planner-select` | Lodur | wants, Select admission, direct tries at a discount and frustration (`bds-unplannable-tries-direct`), plan on the Actor | 2b, Actor.cs cuts in flight | M | | 3 | `lodur-ik-goals` | Lodur | Look, ArmL, ArmR as a Core producer of joint targets (legs later) | none (parallel to 2) | M | | 3b | `lodur-reach-tracking` | Lodur | reach under gravity: feedforward or a damped error loop | 3 | S-M | -| 4 | `lodur-orient-goals` | Lodur + BDS | look, reach, ward off, recoil, fetal and stare-at-hands as layers; seated Fella demo | 2, 3 | M | +| 4 | `lodur-orient-goals` | Lodur + BDS | look, reach, ward off and recoil as layers; fetal (a key-pose goal) and stare-at-hands (Look and Reach on a phantom) are data; seated Fella demo | 2, 3 | M | | 5 | `lodur-phantom-percepts` + `bds-thought-bubble` | Lodur, BDS | phantom things by hallucination type; the bubble reads their kinds | 1, 4 | M, S | | 6 | `lodur-assist-pin` | Lodur | upright assist | none | S | | 7 | `lodur-stand` | Lodur + BDS | standing puppet scene, stool weld dropped | 6 | S | diff --git a/src/Lodur.Core/BodyPlan.cs b/src/Lodur.Core/BodyPlan.cs index cb55886..f05701f 100644 --- a/src/Lodur.Core/BodyPlan.cs +++ b/src/Lodur.Core/BodyPlan.cs @@ -37,7 +37,7 @@ namespace Lodur /// /// A body as data: parts, the joints that are also its tree, sense points and airway openings, each named by label and side. - /// Engine-free; a binding (Lodur.Body.Ymir) builds it into a physics world. Validated at construction. + /// Engine-free; a physics binding builds it into a world. Validated at construction. /// public sealed class BodyPlan { diff --git a/src/Lodur.Core/Lodur.Core.csproj b/src/Lodur.Core/Lodur.Core.csproj index 14fca96..bfe4eb4 100644 --- a/src/Lodur.Core/Lodur.Core.csproj +++ b/src/Lodur.Core/Lodur.Core.csproj @@ -1,6 +1,6 @@ - + netstandard2.1 12.0 diff --git a/tests/Lodur.Core.Tests/OrientTests.cs b/tests/Lodur.Core.Tests/OrientTests.cs index aea3a3b..5de221f 100644 --- a/tests/Lodur.Core.Tests/OrientTests.cs +++ b/tests/Lodur.Core.Tests/OrientTests.cs @@ -336,6 +336,20 @@ public sealed class OrientTests } } + [Fact] + public void The_layers_treat_a_phantom_target_as_they_treat_a_real_one_at_the_same_place() + { + // Stare-at-hands is Look and Reach on a phantom at the actor's own hand: the layers read the percept's place, never its id. + var b = Behaviour(new LookLayer(), new ArmLayer { Mode = ArmMode.Reach, Side = ArmSide.Both }, Recoiling()); + foreach (var parts in new[] { Rest(), Turned() }) + { + var real = Run(b, parts, At(Ahead, 1UL)); + var phantom = Run(b, parts, At(Ahead, Perception.PhantomIdBit | 1UL)); + for (var m = 0; m < Joints; m++) SameBits(real[m], phantom[m]); + Assert.NotEqual(Base(b)[Neck], phantom[Neck]); + } + } + [Fact] public void The_flinch_applies_after_the_layers_and_strength_stays_the_pose_rule() {