Defines a field of view, which is an area with a horizontal arc and vertical arc.
More...
|
float | horizontalFOV = 120f |
| The horizontal viewing angle in degrees.
|
|
float | verticalFOV = 120f |
| The vertical viewing angle in degrees.
|
|
float | maxDistance = 10f |
| The max distance from the sensor that the field of view extends.
|
|
Color | gizmoColor = new Color(1, 1, 1, 0.25f) |
| The color to use when drawing this field of view in the Scene view.
|
|
Defines a field of view, which is an area with a horizontal arc and vertical arc.
◆ FieldOfView() [1/3]
PixelCrushers.LoveHate.FieldOfView.FieldOfView |
( |
| ) |
|
|
inline |
◆ FieldOfView() [2/3]
PixelCrushers.LoveHate.FieldOfView.FieldOfView |
( |
float |
horizontalFOV, |
|
|
float |
verticalFOV, |
|
|
float |
maxDistance, |
|
|
Color |
gizmoColor |
|
) |
| |
|
inline |
Creates a new field of view.
- Parameters
-
horizontalFOV | Horizontal viewing angle in degrees. |
verticalFOV | Vertical viewing angle in degrees. |
maxDistance | Max distance from the sensor. |
gizmoColor | Color to use when drawing the Scene view gizmo. |
◆ FieldOfView() [3/3]
PixelCrushers.LoveHate.FieldOfView.FieldOfView |
( |
FieldOfView |
fov | ) |
|
|
inline |
Copies a field of view.
- Parameters
-
◆ Contains()
bool PixelCrushers.LoveHate.FieldOfView.Contains |
( |
Transform |
origin, |
|
|
Transform |
target, |
|
|
Dimension |
dimension |
|
) |
| |
|
inline |
Determines whether a target is within the field of view that extends from the sensor's origin point.
- Parameters
-
origin | Sensor's origin point. |
target | Target to check. |
dimension | Specifies whether to check in 2D or 3D. |
- Returns
true
if the target is within the field of view; false
otherwise.
◆ gizmoColor
Color PixelCrushers.LoveHate.FieldOfView.gizmoColor = new Color(1, 1, 1, 0.25f) |
The color to use when drawing this field of view in the Scene view.
◆ horizontalFOV
float PixelCrushers.LoveHate.FieldOfView.horizontalFOV = 120f |
The horizontal viewing angle in degrees.
◆ maxDistance
float PixelCrushers.LoveHate.FieldOfView.maxDistance = 10f |
The max distance from the sensor that the field of view extends.
◆ verticalFOV
float PixelCrushers.LoveHate.FieldOfView.verticalFOV = 120f |
The vertical viewing angle in degrees.
The documentation for this class was generated from the following file:
- C:/Dev/LoveHate/Dev/Source/Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/Vision/FieldOfView.cs