/// <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; }
public void ToTarget(ActorTarget target) { _target = target; _bodyMode = BodyMode.actor; _aimMode = AimMode.actor; _hasBodyAim = true; _hasAim = true; _isTurningSlowly = false; }
/// <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); } }
/// <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); } }
/// <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; }
/// <summary> /// Told to turn the body towards the walk direction. /// </summary> public void ToTurnToWalkDirection() { _bodyMode = BodyMode.walk; _hasBodyAim = true; }
private void traceEyeToolStripMenuItem_Click_1(object sender, EventArgs e) { this.BodyMode = BodyMode.Eye; }