Projectile
Contains methods for activation of neural network and reading data from it. See General Idea.
Projectile State Machine
stateDiagram-v2
[*] --> InitialFlightState
InitialFlightState --> ControlledState
ControlledState --> ReflectionState
ReflectionState --> ControlledState
AnyState --> PauseState
PauseState --> AnyState
ReflectionState is either CircleReflectionState or ConeReflectionState or RectReflectionState depending on ReflectionMode value.
The projectile is white when in InitialFlightState or ReflectionState.
Properties
Properties that you will need to assign in the inspector.
Property | Type | Description |
---|---|---|
GlobalVariables | GlobalVariablesSO | Needed for pause functionality. |
LayerMask | int | Specify the layer of objects that the projectile should collide with. |
HealthPoints | float | Health points of projectile. HP acts like damage on collision. |