Class ShelterQuery
Where an NPC can get out of the weather (Phase 4 of the core and modules plan, 2026-11-18): the nearest shelter volume's bounds. The World Simulation module installs Source from its weather volumes; with none installed there is no shelter anywhere, and an NPC that would seek one stays where it is.
public static class ShelterQuery
- Inheritance
-
ShelterQuery
- Inherited Members
Fields
Source
public static ShelterQuery.NearestSource Source
Field Value
Methods
TryNearest(Scene, Vector3, float, float, out Bounds)
The bounds of the nearest shelter within maxDistance of from that shelters
at least minimumStrength; false when there is none.
public static bool TryNearest(Scene scene, Vector3 from, float maxDistance, float minimumStrength, out Bounds bounds)