FOVCollider
Generates a Collider
shaped like a field-of-view cone.
Properties
Length
The length of the cone.
BaseSize
The width of the cone at its base. This is a square shape.
FOVAngle
The field of view angle in degrees.
ElevationAngle
The angle in degrees that the cone spans perpendicular to the field of view.
Resolution
The subdivision level at the far end of the cone. Best to keep this as small as possible for performance reasons.
FOVMesh
The Mesh
that is generated by this component.
Methods
CreateCollider()
void CreateCollider()
If you change any of these properties at runtime call this function after to generate a new collider.