Targeting System 2.0.0
Plugin for multipurpose targeting and visual effects.
|
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...
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.Edge > | GetSeenEdges () |
Currently unavailable More... | |
Properties | |
int | Id [get, set] |
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.
NativeArray< GeometryDataModels.Edge > Plugins.GeometricVision.TargetingSystem.Code.Interfaces.ITargetVisibilityProcessor.GetSeenEdges | ( | ) |
Currently unavailable
Implemented in Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GameObjectTargetVisibilityProcessor.
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.
useBounds | Should meshes bounds used instead of object position when determining if the object is visible |
gvTargetingSystem | geometry vision component to use for lookup |
forceUpdate | Bypass optimizations and do a full update |
Implemented in Plugins.GeometricVision.TargetingSystem.Code.GameObjects.ImplementationsGameObjects.GameObjectTargetVisibilityProcessor.