/// <summary> /// Spookiness value at the visitor's position. /// </summary> /// <returns> /// Spookiness value at the visitor's position, where higher values are /// more spooky. /// </returns> public float LocalSpook() { return(SpookMap.ValueAt(transform.position)); }
/// <summary> /// Spookiness spatial gradient at the visitor's position. /// </summary> /// <remarks> /// This is the full 3D gradient of spookiness in space. Thus, the /// direction spookiness increases the most is aligned with the resulting /// vector. /// </remarks> /// <returns> /// The vector resulting from applying the gradient operator to the /// spookiness spatial map at the visitor's current position. /// </returns> public Vector3 LocalGradient() { return(SpookMap.Gradient3(transform.position)); }