This class will create a cone of vision defined by an angle and a distance around a point. It will look for targets within that field, and draw a mesh to show the cone of vision initially inspired by this great tutorial by Sebastian Lague : https://www.youtube.com/watch?v=rQG9aUWarwE - check out his tutorials, they're amazing!
More...
This class will create a cone of vision defined by an angle and a distance around a point. It will look for targets within that field, and draw a mesh to show the cone of vision initially inspired by this great tutorial by Sebastian Lague : https://www.youtube.com/watch?v=rQG9aUWarwE - check out his tutorials, they're amazing!
◆ Awake()
virtual void MoreMountains.Tools.MMConeOfVision.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ DrawMesh()
virtual void MoreMountains.Tools.MMConeOfVision.DrawMesh |
( |
| ) |
|
|
protectedvirtual |
◆ LateUpdate()
virtual void MoreMountains.Tools.MMConeOfVision.LateUpdate |
( |
| ) |
|
|
protectedvirtual |
◆ ScanForTargets()
virtual void MoreMountains.Tools.MMConeOfVision.ScanForTargets |
( |
| ) |
|
|
protectedvirtual |
◆ SetDirectionAndAngles()
virtual void MoreMountains.Tools.MMConeOfVision.SetDirectionAndAngles |
( |
Vector3 |
direction, |
|
|
Vector3 |
eulerAngles |
|
) |
| |
|
virtual |
◆ _directionToTarget
Vector3 MoreMountains.Tools.MMConeOfVision._directionToTarget |
|
protected |
◆ _distanceToTarget
float MoreMountains.Tools.MMConeOfVision._distanceToTarget |
|
protected |
◆ _lastScanTimestamp
float MoreMountains.Tools.MMConeOfVision._lastScanTimestamp |
|
protected |
◆ _minPoint
Vector3 MoreMountains.Tools.MMConeOfVision._minPoint |
|
protected |
◆ _numberOfVerticesLastTime
int MoreMountains.Tools.MMConeOfVision._numberOfVerticesLastTime = 0 |
|
protected |
◆ _oldViewCast
◆ _raycastAtAngleHit
RaycastHit MoreMountains.Tools.MMConeOfVision._raycastAtAngleHit |
|
protected |
◆ _returnRaycastData
RaycastData MoreMountains.Tools.MMConeOfVision._returnRaycastData |
|
protected |
◆ _target
Transform MoreMountains.Tools.MMConeOfVision._target |
|
protected |
◆ _targetsWithinDistance
Collider [] MoreMountains.Tools.MMConeOfVision._targetsWithinDistance |
|
protected |
◆ _triangles
int [] MoreMountains.Tools.MMConeOfVision._triangles |
|
protected |
◆ _vertices
Vector3 [] MoreMountains.Tools.MMConeOfVision._vertices |
|
protected |
◆ _viewCast
◆ _viewPoints
List<Vector3> MoreMountains.Tools.MMConeOfVision._viewPoints = new List<Vector3>() |
|
protected |
◆ _visionMesh
Mesh MoreMountains.Tools.MMConeOfVision._visionMesh |
|
protected |
◆ Direction
Vector3 MoreMountains.Tools.MMConeOfVision.Direction |
◆ EdgePrecision
int MoreMountains.Tools.MMConeOfVision.EdgePrecision = 3 |
◆ EdgeThreshold
float MoreMountains.Tools.MMConeOfVision.EdgeThreshold = 0.5f |
◆ EulerAngles
Vector3 MoreMountains.Tools.MMConeOfVision.EulerAngles |
◆ MeshDensity
float MoreMountains.Tools.MMConeOfVision.MeshDensity = 0.2f |
◆ ObstacleMask
LayerMask MoreMountains.Tools.MMConeOfVision.ObstacleMask |
◆ Offset
Vector3 MoreMountains.Tools.MMConeOfVision.Offset |
◆ ScanFrequencyInSeconds
float MoreMountains.Tools.MMConeOfVision.ScanFrequencyInSeconds = 1f |
◆ ShouldDrawMesh
bool MoreMountains.Tools.MMConeOfVision.ShouldDrawMesh = true |
◆ ShouldScanForTargets
bool MoreMountains.Tools.MMConeOfVision.ShouldScanForTargets = true |
◆ TargetMask
LayerMask MoreMountains.Tools.MMConeOfVision.TargetMask |
◆ VisibleTargets
List<Transform> MoreMountains.Tools.MMConeOfVision.VisibleTargets = new List<Transform>() |
◆ VisionAngle
float MoreMountains.Tools.MMConeOfVision.VisionAngle = 20f |
◆ VisionMeshFilter
MeshFilter MoreMountains.Tools.MMConeOfVision.VisionMeshFilter |
◆ VisionRadius
float MoreMountains.Tools.MMConeOfVision.VisionRadius = 5f |
◆ Center
virtual Vector3 MoreMountains.Tools.MMConeOfVision.Center |
|
get |
The documentation for this class was generated from the following file: