Exemple #1
0
 public override MovementOutput GetSteering(Path path)
 {
     if (Actuators.ContainsKey(ActiveActuator))
     {
         return Actuators[ActiveActuator].GetSteering(path);
     }
     return new MovementOutput();
 }
Exemple #2
0
        public override MovementOutput GetSteering(Path path)
        {
            var target = path.GetPosition(1.0f);

            this.Seek.Character = this.Pipeline.Character;
            this.Seek.Target = new KinematicData(new StaticData(target));
            this.Seek.MaxAcceleration = this.Pipeline.MaxAcceleration;

            return this.Seek.GetMovement();
        }
Exemple #3
0
        public override MovementOutput GetSteering(Path path)
        {
            if (this.PreviousPath == null || this.PreviousPath != path)
            {
                this.FollowPathMovement.Path = path;
                this.FollowPathMovement.CurrentParam = 0;
                this.PreviousPath = path;
            }

            return this.FollowPathMovement.GetMovement();
        }
Exemple #4
0
        public DynamicFollowPath(KinematicData character, Path path)
        {
            //arrive properties
            this.SlowRadius = 5.0f;
            this.TimeToTarget = 0.5f;
            this.TargetRadius = 1.0f;

            this.MaxAcceleration = 40.0f;

            this.Target = new KinematicData();
            this.Character = character;
            this.Path = path;
            this.CurrentParam = 0.0f;
            this.PathOffset = 0.5f;
            this.EmptyMovementOutput = new MovementOutput();
        }
Exemple #5
0
 public override MovementOutput GetSteering(Path path)
 {
     return this.StopMovement.GetMovement();
 }
Exemple #6
0
 public abstract float WillViolate(Path path, float maxPriority);
Exemple #7
0
 public abstract SteeringGoal Suggest(Path path);
Exemple #8
0
 public abstract MovementOutput GetSteering(Path path);