예제 #1
0
            //public bool calculateSpline { get; set; }

            /// <param name="location"> The 3D location where the agent should gaze </param>
            /// <param name="mode"> Can be "default", "eyes" or "headpose" </param>
            public PerformGaze(Vector3Simple location, int mode, int speed /*, bool calculateSpline*/) : base(EVENTNAME.ACTION.GAZE)
            {
                this.location = location;
                this.mode     = mode;
                this.speed    = speed;
                //this.calculateSpline = calculateSpline;
            }
예제 #2
0
        /// <summary>
        /// Makes the agent shift gaze to a certain location in 3D space
        /// </summary>
        /// <param name="location"> The 3D location where the agent should gaze </param>
        public void Gaze(Vector3Simple location)
        {
            if (gazeDeactivated)
            {
                return;
            }

            if (rollEnabled)
            {
                SendEvent(new ActionEvents.PerformGazeWithRoll(location, gazeMode, gazeSpeed, gazeRoll));
            }
            else
            {
                SendEvent(new ActionEvents.PerformGaze(location, gazeMode, gazeSpeed));
            }
        }