Vixen
c7401864
csharp
public interface IOcclusionTester

Whether there is anything between two points.

Read the guide page for this →

Remarks

The last and most expensive of SightSettings's three tests, and the only one that leaves this assembly. It is a seam rather than a direct call into PhysicsWorld for two reasons, and neither of them is testability: a game with smoke grenades, fog volumes, one-way glass or a stealth mechanic needs sight blocked by things that are not collision geometry, and a game with no physics world at all — a top-down strategy, a management sim — needs the radius and the cone without linking a solver.

⚠ An addition to doc 37 § Part 4's seam table, made here. The table lists ten seams and this is not one of them; the document assumed the trace was a direct physics call. Writing it that way made Occlusion a flag with only one meaning and put a PhysicsWorld in the constructor of a system that a gridless game has no use for.

Methods (1)

Used by (4)

  • OpenSightlinesVixen.Ai.Perception
  • PerceptionSystemVixen.Ai.Perception
  • PhysicsOcclusionVixen.Ai.Perception
  • SeamTestsVixen.Ai.Nodes.Tests