Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
Plugins.GeometricVision.TargetingSystem.Code.Interfaces.ITargetVisibilityProcessor Interface Reference

Responsible for seeing objects and geometry inside the targetingSystem. It checks, if object is inside visibility zone and filters out unwanted objects and geometry. More...

Inheritance diagram for Plugins.GeometricVision.TargetingSystem.Code.Interfaces.ITargetVisibilityProcessor:
Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GameObjectTargetVisibilityProcessor

Public Member Functions

void UpdateVisibility (bool useBounds, GV_TargetingSystem gvTargetingSystem, bool forceUpdate)
 Updates targets source game object or entity visibilities. Only to be used in case you need to get updated information for target searches like GetTargets or Update targets from GV_TargetingSystem component. Normally this is done automatically and only needs to be manually invoked if waiting for a frame is not an option. More...
 
NativeArray< GeometryDataModels.EdgeGetSeenEdges ()
 Currently unavailable More...
 

Properties

int Id [get, set]
 

Detailed Description

Responsible for seeing objects and geometry inside the targetingSystem. It checks, if object is inside visibility zone and filters out unwanted objects and geometry.

Usage: Automatic. Default implementation of this interface is added automatically after user adds GV_TargetingSystem component from the inspector UI. Implementation is also switched according to user decisions. See GeometricVision.cs

The entity version has some differences how it behaves. For example there can be multiple MonoBehaviours, but only 1 entity system at a time. That means you can store things in MonoBehaviour components for easier life but with entities you need to share things.

Member Function Documentation

◆ GetSeenEdges()

NativeArray< GeometryDataModels.Edge > Plugins.GeometricVision.TargetingSystem.Code.Interfaces.ITargetVisibilityProcessor.GetSeenEdges ( )

◆ UpdateVisibility()

void Plugins.GeometricVision.TargetingSystem.Code.Interfaces.ITargetVisibilityProcessor.UpdateVisibility ( bool  useBounds,
GV_TargetingSystem  gvTargetingSystem,
bool  forceUpdate 
)

Updates targets source game object or entity visibilities. Only to be used in case you need to get updated information for target searches like GetTargets or Update targets from GV_TargetingSystem component. Normally this is done automatically and only needs to be manually invoked if waiting for a frame is not an option.

Parameters
useBoundsShould meshes bounds used instead of object position when determining if the object is visible
gvTargetingSystemgeometry vision component to use for lookup
forceUpdateBypass optimizations and do a full update

Implemented in Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GameObjectTargetVisibilityProcessor.


The documentation for this interface was generated from the following file: