예제 #1
0
        public MovementOutput GetMovement(DynamicCharacter character, GlobalPath currentSmoothedSolution)
        {
            DynamicMovement output;
            output = new DynamicFollowPath(character.KinematicData, currentSmoothedSolution)
            {
                MaxAcceleration = 20.0f,
                PathOffset = 0.15f
            };

            return output.GetMovement();
        }
        public HumanActuator(DynamicCharacter character)
        {
            SeekMovement = new DynamicSeek
            {
                MaxAcceleration = 60f,
                Character = character.KinematicData,
                StopRadius = 49f // 49 = 7^2
            };

            this.Character = character;
            this.Character.MaxSpeed = 30f;

            FollowPathMovement = new DynamicFollowPath(character.KinematicData)
            {
                MaxAcceleration = 40f,
                MaxSpeed = 30f,
                SlowRadius = 3.5f,
                StopRadius = 3f,
                GoalPosition = GoalPosition
            };
        }