예제 #1
0
        public override SteeringOutput GetSteering()
        {
            // no KS? get it
            if (this.ownKS == null)
            {
                this.ownKS = GetComponent <KinematicState>();
            }

            return(KBDSteer01.GetSteering(this.ownKS));
        }
예제 #2
0
        public static SteeringOutput GetSteering(KinematicState ownKS)
        {
            // give priority to obstacle avoidance
            SteeringOutput so = ObstacleAvoidance.GetSteering(ownKS, true, 30f, 30f);

            if (so == null)
            {
                return(KBDSteer01.GetSteering(ownKS));
            }

            return(so);
        }