csharp
public sealed class ConeDecoratorA position is inside a cone from another position, pointing along a direction.
Remarks
The two forms in doc 37 § Part 3 are one class and a flag: Cone gates entry and KeepInCone keeps testing, which is Continuous.
Fields and properties (3)
public override ObserverAborts AbortsWhat this may interrupt when the keys it reads change.
public override bool ContinuousWhether it is re-tested every step while the branch it gates is running.
public override ReadOnlySpan<BlackboardKey> ObservedKeysThe blackboard keys it reads.
Methods (2)
public ConeDecorator(BlackboardKey origin, BlackboardKey direction, BlackboardKey target, float halfAngleDegrees, bool keepTesting = false, ObserverAborts aborts = None)Tests a cone.
public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)Whether the node may be entered, or may keep running.
Used by (2)
- BehaviorTreeDecoratorTestsVixen.Ai.Tests
- BuildStateVixen.Ai