public override SteeringOutput GetSteering()
        {
            SteeringOutput result = LeaderFollowingBlended.GetSteering(this.ownKS, target,
                                                                       requiredDistance, requiredAngle,
                                                                       tag, repulsionThreshold,
                                                                       wlr /* COMPLETE */);

            base.applyRotationalPolicy(rotationalPolicy, result, target);
            return(result);
        }
예제 #2
0
        public override SteeringOutput GetSteering()
        {
            // no KS? get it
            if (this.ownKS == null)
            {
                this.ownKS = GetComponent <KinematicState>();
            }

            SteeringOutput result = LeaderFollowingBlended.GetSteering(this.ownKS, this.target, this.requiredDistance, this.requiredAngle, this.idTag, this.repulsionThreshold, this.wlr);

            base.applyRotationalPolicy(rotationalPolicy, result, target);
            return(result);
        }