TopDown Engine  v3.6
MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D Class Reference
Inheritance diagram for MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D:
MoreMountains.Tools.AIAction

Public Member Functions

override void Initialization ()
 On init we grab our CharacterOrientation3D ability More...
 
override void PerformAction ()
 On PerformAction we move More...
 
override void OnEnterState ()
 On enter state we reset our flag More...
 
override void OnExitState ()
 On enter state we reset our flag More...
 

Public Attributes

bool LockRotationX = false
 whether or not to lock the X rotation. If set to false, the model will rotate on the x axis, to aim up or down More...
 
- Public Attributes inherited from MoreMountains.Tools.AIAction
InitializationModes InitializationMode
 
string Label
 a label you can set to organize your AI Actions, not used by anything else More...
 

Protected Member Functions

virtual void Rotate ()
 Makes the orientation 3D ability rotate towards the brain target More...
 
- Protected Member Functions inherited from MoreMountains.Tools.AIAction
virtual void Awake ()
 On Awake we grab our AIBrain More...
 

Protected Attributes

CharacterOrientation3D _characterOrientation3D
 
Vector3 _targetPosition
 
bool _originalForcedRotation
 
- Protected Attributes inherited from MoreMountains.Tools.AIAction
bool _initialized
 
AIBrain _brain
 

Additional Inherited Members

- Public Types inherited from MoreMountains.Tools.AIAction
enum  InitializationModes { InitializationModes.EveryTime, InitializationModes.OnlyOnce }
 
- Properties inherited from MoreMountains.Tools.AIAction
virtual bool ActionInProgress [get, set]
 
virtual bool ShouldInitialize [get]
 

Member Function Documentation

◆ Initialization()

override void MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.Initialization ( )
virtual

On init we grab our CharacterOrientation3D ability

Reimplemented from MoreMountains.Tools.AIAction.

◆ OnEnterState()

override void MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.OnEnterState ( )
virtual

On enter state we reset our flag

Reimplemented from MoreMountains.Tools.AIAction.

◆ OnExitState()

override void MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.OnExitState ( )
virtual

On enter state we reset our flag

Reimplemented from MoreMountains.Tools.AIAction.

◆ PerformAction()

override void MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.PerformAction ( )
virtual

On PerformAction we move

Implements MoreMountains.Tools.AIAction.

◆ Rotate()

virtual void MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.Rotate ( )
protectedvirtual

Makes the orientation 3D ability rotate towards the brain target

Member Data Documentation

◆ _characterOrientation3D

CharacterOrientation3D MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D._characterOrientation3D
protected

◆ _originalForcedRotation

bool MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D._originalForcedRotation
protected

◆ _targetPosition

Vector3 MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D._targetPosition
protected

◆ LockRotationX

bool MoreMountains.TopDownEngine.AIActionRotateTowardsTarget3D.LockRotationX = false

whether or not to lock the X rotation. If set to false, the model will rotate on the x axis, to aim up or down


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