Class ViewDistance
ViewDistance structure used by IWorldObserver for representing view distance optimized for checks. Visible is when object is visible in the view distance and NotVisible is when object is out of view distance. It usually higher than Visible value to avoid too adding and removing objects in the view.
Inheritance
System.Object
ViewDistance
Assembly: Eco.Shared.dll
Syntax
public sealed class ViewDistance : ValueType
Constructors
ViewDistance(Single, Single)
Creates new ViewDistance with visible distance and invisibilityThreshold when objects in view distance no more visible. NotVisible calculated as Visible + invisibilityThreshold.
Declaration
public ViewDistance(float visible, float invisibilityThreshold)
Parameters
| Type |
Name |
Description |
| System.Single |
visible |
|
| System.Single |
invisibilityThreshold |
|
Fields
NotVisible
Declaration
public readonly float NotVisible
Field Value
| Type |
Description |
| System.Single |
|
NotVisibleSq
Declaration
public readonly float NotVisibleSq
Field Value
| Type |
Description |
| System.Single |
|
Visible
Declaration
public readonly float Visible
Field Value
| Type |
Description |
| System.Single |
|
VisibleSq
Declaration
public readonly float VisibleSq
Field Value
| Type |
Description |
| System.Single |
|
Extension Methods