コード例 #1
0
ファイル: ActuatorSwitch.cs プロジェクト: IAJ-g04/Lab9
 public override MovementOutput GetSteering(Path path)
 {
     if (Actuators.ContainsKey(ActiveActuator))
     {
         return Actuators[ActiveActuator].GetSteering(path);
     }
     return new MovementOutput();
 }
コード例 #2
0
ファイル: BasicActuator.cs プロジェクト: IAJ-g04/Lab9
        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();
        }
コード例 #3
0
ファイル: FollowPathActuator.cs プロジェクト: IAJ-g04/Lab9
        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();
        }
コード例 #4
0
ファイル: DynamicFollowPath.cs プロジェクト: IAJ-g04/Lab9
        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();
        }
コード例 #5
0
ファイル: StandStillActuator.cs プロジェクト: IAJ-g04/Lab9
 public override MovementOutput GetSteering(Path path)
 {
     return this.StopMovement.GetMovement();
 }
コード例 #6
0
ファイル: ConstraintComponent.cs プロジェクト: IAJ-g04/Lab9
 public abstract float WillViolate(Path path, float maxPriority);
コード例 #7
0
ファイル: ConstraintComponent.cs プロジェクト: IAJ-g04/Lab9
 public abstract SteeringGoal Suggest(Path path);
コード例 #8
0
ファイル: ActuatorComponent.cs プロジェクト: IAJ-g04/Lab9
 public abstract MovementOutput GetSteering(Path path);