Example #1
0
 /// <summary>
 /// Told to turn both body and arms towards the walk direction.
 /// </summary>
 public void ToFaceWalkDirection()
 {
     _bodyMode   = BodyMode.walk;
     _aimMode    = AimMode.walk;
     _hasBodyAim = true;
     _hasAim     = true;
 }
Example #2
0
 public void ToTarget(ActorTarget target)
 {
     _target          = target;
     _bodyMode        = BodyMode.actor;
     _aimMode         = AimMode.actor;
     _hasBodyAim      = true;
     _hasAim          = true;
     _isTurningSlowly = false;
 }
Example #3
0
        /// <summary>
        /// Told by the brains to turn the body to a direection.
        /// </summary>
        public void ToTurnTo(Vector3 direction)
        {
            _body            = direction;
            _bodyMode        = BodyMode.direction;
            _hasBodyAim      = true;
            _isTurningSlowly = false;

            if (!_hasAim)
            {
                ToAimTo(direction);
            }
        }
Example #4
0
        /// <summary>
        /// Told by the brains to turn the body at a position.
        /// </summary>
        public void ToTurnAt(Vector3 position)
        {
            _body            = position;
            _bodyMode        = BodyMode.position;
            _hasBodyAim      = true;
            _isTurningSlowly = false;

            if (!_hasAim)
            {
                ToAimAt(position);
            }
        }
Example #5
0
        /// <summary>
        /// Told to start scanning the surrounding area.
        /// </summary>
        public void ToScan()
        {
            if (_bodyMode != BodyMode.scan)
            {
                findNewScanDirection();
            }

            _bodyMode   = BodyMode.scan;
            _aimMode    = AimMode.scan;
            _hasBodyAim = true;
            _hasAim     = true;
        }
Example #6
0
 /// <summary>
 /// Told to turn the body towards the walk direction.
 /// </summary>
 public void ToTurnToWalkDirection()
 {
     _bodyMode   = BodyMode.walk;
     _hasBodyAim = true;
 }
Example #7
0
 private void traceEyeToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     this.BodyMode = BodyMode.Eye;
 }