This AIAction will rotate this AI's ConeOfVision2D either towards the AI's movement or its weapon aim direction.
More...
|
| override void | Initialization () |
| | On init we grab our components.
|
| override void | PerformAction () |
| override void | OnEnterState () |
| | On entry we grab the weapon aim and cache it.
|
| void | PerformAction () |
| virtual void | OnExitState () |
| | Describes what happens when the brain exits the state this action is in. Meant to be overridden.
|
|
| virtual void | AimCone () |
| | Aims the cone at either movement or weapon aim if possible.
|
| virtual void | AimAt (Vector3 direction) |
| | Rotates the cone, interpolating the rotation if needed.
|
| virtual void | GrabWeaponAim () |
| | Caches the weapon aim comp.
|
| virtual void | Awake () |
| | On Awake we grab our AIBrain.
|
This AIAction will rotate this AI's ConeOfVision2D either towards the AI's movement or its weapon aim direction.
◆ Modes
the possible directions we can aim the cone at
| Enumerator |
|---|
| Movement | |
| WeaponAim | |
◆ AimAt()
| virtual void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.AimAt |
( |
Vector3 | direction | ) |
|
|
protectedvirtual |
Rotates the cone, interpolating the rotation if needed.
- Parameters
-
◆ AimCone()
| virtual void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.AimCone |
( |
| ) |
|
|
protectedvirtual |
Aims the cone at either movement or weapon aim if possible.
◆ GrabWeaponAim()
| virtual void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.GrabWeaponAim |
( |
| ) |
|
|
protectedvirtual |
Caches the weapon aim comp.
◆ Initialization()
| override void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.Initialization |
( |
| ) |
|
|
virtual |
◆ OnEnterState()
| override void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.OnEnterState |
( |
| ) |
|
|
virtual |
◆ PerformAction()
| override void MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.PerformAction |
( |
| ) |
|
◆ _angle
| float MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D._angle |
|
protected |
◆ _characterHandleWeapon
◆ _controller
| TopDownController MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D._controller |
|
protected |
◆ _eulerAngles
| Vector3 MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D._eulerAngles = Vector3.zero |
|
protected |
◆ _newAim
| Vector3 MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D._newAim |
|
protected |
◆ _weaponAim
| WeaponAim MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D._weaponAim |
|
protected |
◆ Interpolate
| bool MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.Interpolate = false |
whether or not to interpolate the rotation
◆ InterpolateRate
| float MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.InterpolateRate = 5f |
the rate at which to interpolate the rotation
◆ Mode
whether to aim at the AI's movement direction or the weapon aim direction
◆ TargetConeOfVision2D
| MMConeOfVision2D MoreMountains.TopDownEngine.AIActionRotateConeOfVision2D.TargetConeOfVision2D |
the cone of vision 2D to rotate
The documentation for this class was generated from the following file: